# SimpleTPA
### 插件
这是一个简单的TPA插件。带有自定义选项。**默认配置在页尾。**
**特性:**
- 可自定义消息
- TPA-冷却时间
- 自定义声音
- 可点击聊天消息 _(用于 /tpaccept 或 /tpdeny)_
**使用方法:**
- _**/tpa [玩家]**_ 向指定的玩家发送传送请求。
- _**/tpaccept**_ 接受其他玩家发送的最新TPA请求。
- _**/tpdeny**_ 拒绝其他玩家发送的最新TPA请求。
- _**/tpacancel**_ 取消自己发送的TPA请求。
- _**/tpreload**_ 重新加载 config.yml。 _需要权限: tpa.reload_
**权限:**
- _**tpa.reload**_ 运行 _**/tpreload**_ 需要此权限。

_default config.yml_
```
settings:
tpa_cooldown: 30 # 冷却时间,单位为秒,在玩家可以发送另一个TPA请求之前。
tpa_request_timeout: 60 # TPA请求到期的时间,单位为秒。
sounds:
tpa_request_sent: "ENTITY_EXPERIENCE_ORB_PICKUP"
tpa_request_received: "ENTITY_PLAYER_LEVELUP"
tpa_accept: "ENTITY_ENDERMAN_TELEPORT"
tpa_deny: "ENTITY_VILLAGER_NO"
tpa_expired: "ENTITY_ITEM_BREAK"
messages:
tpa_request_sent: "你向 %target% 发送了TPA请求。"
tpa_request_received: "%player% 给你发送了TPA请求!"
tpa_accept_success: "你接受了来自 %player% 的TPA请求。"
tpa_accept_teleport: "你被 %player% 传送了。"
tpa_deny_success: "你拒绝了来自 %player% 的TPA请求。"
tpa_no_request: "你没有未处理的TPA请求。"
tpa_request_exists: "你已经有一个未处理的TPA请求了。"
player_not_online: "这个玩家当前不在线。"
wrong_usage: "用法: /%command% <玩家>"
tpa_cancel_success: "你的TPA请求已取消。"
tpa_cancel_notify: "%player% 取消了他们的TPA请求。"
tpa_request_expired_sender: "你向 %target% 的TPA请求已到期。"
tpa_request_expired_receiver: "%player% 的TPA请求已到期。"
tpa_cooldown: "§e请等待 %seconds% 秒,然后再发送新的TPA请求。"
config_reloaded: "§a配置已成功重新加载。"
no_permission: "§c你没有使用此命令所需的权限!"
clickable_messages:
accept_text: "[✔ 接受]"
accept_hover: "点击接受TPA!"
accept_command: "/tpaccept"
accept_color: "GREEN"
deny_text: "[✖ 拒绝]"
deny_hover: "点击拒绝TPA!"
deny_command: "/tpdeny"
deny_color: "RED"
```