Redcraft_TPA
Redcraft_TPA 是一款适用于 Bukkit/Paper 服务器的轻量级、可配置的传送请求插件。
它提供现代化的 TPA 工作流程,包括可点击的聊天操作、可选的 GUI 流程、传送预热倒计时以及战斗安全的取消行为。
功能
- 使用
/tpa 和 /tpahere 发送和接收传送请求
- 使用
/tpaccept 和 /tpdeny 接受或拒绝请求
- 支持通过 GUI 发送和接受请求(可选)
- 带有悬停提示的可点击
[Accept] / [Deny] / [GUI] 聊天按钮
- 可配置的请求冷却时间
- 可配置的请求超时时间
- 可配置的传送延迟,并显示动作栏倒计时
- 移动或受伤时自动取消传送
- 使用
/tptoggle 切换传入请求
- 使用
/tpa reload 重载插件配置(需 OP/权限)
- 所有核心命令均支持完整的 Tab 补全
- 利用 Adventure 库实现彩色聊天消息和动作栏消息
命令
| 命令 |
描述 |
/tpa <player> |
发送前往某玩家的传送请求 |
/tpa gui |
打开 GUI 选择玩家并发送 TPA/TPAHERE |
/tpahere <player> |
请求某玩家传送到你身边 |
/tpaccept |
接受待处理的请求 |
/tpaccept gui |
打开待处理请求的接受 GUI |
/tpdeny |
拒绝待处理的请求 |
/tptoggle |
启用/禁用传入的传送请求 |
/tpa reload |
重载插件配置(需 OP/权限) |
权限
| 权限 |
默认值 |
描述 |
tpa.request |
true |
允许使用 /tpa 和 /tpahere |
tpa.accept |
true |
允许使用 /tpaccept |
tpa.deny |
true |
允许使用 /tpdeny |
tpa.toggle |
true |
允许使用 /tptoggle |
tpa.reload |
op |
允许使用 /tpa reload |
tpa.bypass.cooldown |
op |
绕过请求冷却时间 |
tpa.bypass.timeout |
op |
绕过请求超时时间 |
配置
文件:plugins/Redcraft_TPA/config.yml
cooldown: 10
timeout: 60
delay: 5
cancel-on-move: true
cancel-on-damage: true
配置选项
cooldown: 发送请求之间的间隔秒数
timeout: 请求过期前的秒数
delay: 接受后的传送预热秒数
cancel-on-move: 如果旅行者移动则取消延迟传送
cancel-on-damage: 如果旅行者受到伤害则取消延迟传送
GUI 详情
发送 GUI
- 通过
/tpa(不带参数)或 /tpa gui 打开
- 以头像形式显示在线玩家
- 左键点击发送
/tpa <player>
- 右键点击发送
/tpahere <player>
接受 GUI
- 通过
/tpaccept gui 打开
- 显示请求者的头像
- 显示以目的地世界命名的草方块
- 包含接受/拒绝按钮
传送安全流程
- 发送方创建请求
- 目标方接受(通过
/tpaccept 或 GUI)
- 旅行者进入预热延迟阶段,并在动作栏显示倒计时
- 如果发生移动或受伤(根据配置),传送将被取消
- 如果未受干扰,传送完成
要求
- 建议使用 API 1.20+
- 基于 Paper 1.21 API 构建
- Java 21
Redcraft_TPA
Redcraft_TPA is a lightweight, configurable teleport-request plugin for Bukkit/Paper servers.
It provides modern TPA workflows with clickable chat actions, optional GUI flows, teleport warmup countdowns, and combat-safe cancellation behavior.
Features
- Send and receive teleport requests with
/tpa and /tpahere
- Accept or deny requests with
/tpaccept and /tpdeny
- Optional GUI support for sending and accepting requests
- Clickable
[Accept] / [Deny] / [GUI] chat buttons with hover text
- Configurable request cooldown
- Configurable request timeout
- Configurable teleport delay with action-bar countdown
- Automatic teleport cancel on movement or damage
- Toggle incoming requests with
/tptoggle
- OP/permission-based config reload with
/tpa reload
- Full tab-completion for all core commands
- Adventure-powered colored chat and action-bar messages
Commands
| Command |
Description |
/tpa <player> |
Send a teleport-to-player request |
/tpa gui |
Open GUI to select a player and send TPA/TPAHERE |
/tpahere <player> |
Ask a player to teleport to you |
/tpaccept |
Accept your pending request |
/tpaccept gui |
Open accept GUI for your pending request |
/tpdeny |
Deny your pending request |
/tptoggle |
Enable/disable incoming teleport requests |
/tpa reload |
Reload plugin config (OP/permission) |
Permissions
| Permission |
Default |
Description |
tpa.request |
true |
Allows /tpa and /tpahere |
tpa.accept |
true |
Allows /tpaccept |
tpa.deny |
true |
Allows /tpdeny |
tpa.toggle |
true |
Allows /tptoggle |
tpa.reload |
op |
Allows /tpa reload |
tpa.bypass.cooldown |
op |
Bypass request cooldown |
tpa.bypass.timeout |
op |
Bypass request timeout |
Configuration
File: plugins/Redcraft_TPA/config.yml
cooldown: 10
timeout: 60
delay: 5
cancel-on-move: true
cancel-on-damage: true
Config options
cooldown: Seconds between sending requests
timeout: Seconds before a request expires
delay: Teleport warmup in seconds after acceptance
cancel-on-move: Cancel delayed teleport if the traveler moves
cancel-on-damage: Cancel delayed teleport if the traveler takes damage
GUI Details
Send GUI
- Opens with
/tpa (without arguments) or /tpa gui
- Shows online players as heads
- Left click sends
/tpa <player>
- Right click sends
/tpahere <player>
Accept GUI
- Opens with
/tpaccept gui
- Shows the requester head
- Shows a grass block named after destination world
- Includes accept/deny buttons
Teleport Safety Flow
- Sender creates request
- Target accepts (
/tpaccept or GUI)
- Traveler enters warmup delay with action-bar countdown
- If movement or damage occurs (based on config), teleport is canceled
- If uninterrupted, teleport completes
Requirements
- API 1.20+ recommended
- Built against Paper 1.21 API
- Java 21
Why Redcraft_TPA
Redcraft_TPA is designed for survival and SMP servers that want a clean teleport-request system without unnecessary complexity:
- Easy to configure
- Lightweight runtime behavior
- Safer teleports for PvP and combat situations
- Friendly UX with clickable actions and GUI support
评论 0
登录后参与评分
还没有评论,来抢沙发吧