TpaGui
一个 Paper 插件,为你的 TPA 插件添加图形界面:Java 玩家使用箱子 GUI,基岩版使用原生表单,1.21.6+ 版本支持原生的 Dialog 请求提示,以及 Velocity 跨服务器玩家列表。
TpaGui 本身不实现传送功能——它作为现有 TPA 插件(如 EssentialsX、HuskHomes 等)之上的 GUI 层工作,并与其中任意一个配合使用。
快速开始
- 将 jar 文件放入
plugins/ 文件夹并重启服务器
- 检查
plugins/TpaGui/config.yml 中的 commands.listen-commands 是否与你的 TPA 插件匹配(默认值:tpa/tpahere)
- 玩家运行
/tpagui 打开菜单,点击头像发送请求
功能
Java 版
- 带有在线玩家头像的箱子 GUI:左键点击执行
/tpa,右键点击执行 /tpahere
- 分页功能,包含上一页/下一页按钮;隐身玩家自动隐藏(兼容 SuperVanish)
- 可配置的返回按钮(自定义材质,点击时运行任意命令,例如
/cd 以返回主菜单)
- 在 1.21.6+ 版本中,传入的请求可以显示原生的接受/拒绝 Dialog(需要数据包;若未安装则自动回退到聊天消息)
基岩版 (Geyser/Floodgate)
- 自动检测基岩版玩家并提供 Cumulus 表单
- 带有头像和分页的玩家列表;传送请求以接受/拒绝弹窗形式展示
- 返回按钮的命令可与 Java 版分开配置(例如
/gmenu)
Velocity 跨服务器
- 从 Velocity 代理同步全网络玩家列表;跨服务器发送传送请求
- 可选开关,用于隐藏来自其他服务器的玩家
通用功能
- 多语言支持:简体中文 / 繁体中文 / 英文;所有文本均可自定义
- TPA、接受和拒绝命令完全可配置,以适应任何 TPA 插件
- 从控制台运行
/tpagui 列出在线玩家
- 启动及定期更新检查(间隔时间可配置)
命令
/tpagui - 打开传送请求菜单(别名:/tpag, /tgui)
权限
tpagui.use - 使用 /tpagui 命令(默认:所有人)
tpagui.admin - 接收更新通知(默认:OP)
配置
主要部分(完整注释请参见 config.yml):
| 部分 |
描述 |
language |
界面语言 (zh_CN / zh_TW / en_US) |
velocity |
跨服务器同步开关、服务器名称、同步间隔 |
java-dialog-gui |
每页玩家数、头像显示及头像 API |
back-button |
返回按钮开关、材质、Java/基岩版独立命令 |
commands |
TPA 命令名称、监听命令、接受/拒绝命令 |
update-check |
更新检查开关及间隔 |
依赖项
- 必需:Paper 1.21+(或其分支版本)
- 可选:Floodgate(支持基岩版表单)
- 可选:Velocity(跨服务器玩家同步 —— 相同的 jar 文件也可在代理端使用)
许可证
MIT,详见 LICENSE。
TpaGui
A Paper plugin that adds a graphical interface to your TPA plugin: chest GUI for Java players, native forms for Bedrock, native Dialog request prompts on 1.21.6+, and Velocity cross-server player lists.
TpaGui does not implement teleportation itself — it acts as a GUI layer on top of your existing TPA plugin (EssentialsX, HuskHomes, etc.) and works with any of them.
Quick Start
- Drop the jar into your
plugins/ folder and restart the server
- Check
commands.listen-commands in plugins/TpaGui/config.yml matches your TPA plugin (default: tpa/tpahere)
- Players run
/tpagui to open the menu and click a head to send a request
Features
Java Edition
- Chest GUI with online player heads: left-click for
/tpa, right-click for /tpahere
- Pagination with prev/next buttons; vanished players are hidden automatically (SuperVanish compatible)
- Configurable back button (custom material, runs any command on click, e.g.
/cd to return to a main menu)
- On 1.21.6+, incoming requests can show a native accept/deny Dialog (requires a datapack; falls back to chat messages automatically)
Bedrock Edition (Geyser/Floodgate)
- Bedrock players are detected automatically and served Cumulus forms instead
- Player list with avatars and pagination; teleport requests shown as accept/deny pop-ups
- Back button command can be configured separately from Java (e.g.
/gmenu)
Velocity Cross-server
- Syncs the network-wide player list from the Velocity proxy; send teleport requests across servers
- Optional toggle to hide players from other servers
General
- Multi-language: Simplified Chinese / Traditional Chinese / English; all text customizable
- TPA, accept and deny commands fully configurable to fit any TPA plugin
- Run
/tpagui from console to list online players
- Startup and periodic update checks (configurable interval)
Commands
/tpagui - Open the teleport request menu (aliases: /tpag, /tgui)
Permissions
tpagui.use - Use the /tpagui command (default: everyone)
tpagui.admin - Receive update notifications (default: OP)
Configuration
Main sections (see config.yml for full comments):
| Section |
Description |
language |
Interface language (zh_CN / zh_TW / en_US) |
velocity |
Cross-server sync toggle, server name, sync interval |
java-dialog-gui |
Players per page, avatar display and avatar API |
back-button |
Back button toggle, material, separate Java/Bedrock commands |
commands |
TPA command names, listened commands, accept/deny commands |
update-check |
Update check toggle and interval |
Dependencies
- Required: Paper 1.21+ (or a fork)
- Optional: Floodgate (Bedrock form support)
- Optional: Velocity (cross-server player sync — the same jar works on the proxy)
License
MIT, see LICENSE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧