TPAPlugin
一款功能丰富、完全优化的 Paper、Folia Purpur 及更多 服务器用的 TPA(传送请求)插件,支持自定义 GUI、可点击消息、音效、代理支持、HEX 颜色支持以及 PlaceholderAPI 集成。
功能特性
/tpa <player> — 请求传送到另一位玩家处
/tpahere <player> — 请求另一位玩家传送到你这里
- 发送请求前确认 GUI(每位玩家独立开关)
- 接受/拒绝 GUI,并带有玩家头像预览
- 待处理请求列表 (
/tpaaccept)
- 每位玩家的独立开关:接收 TPA、接收 TPAHERE、自动接受
- 通过 Redis + Velocity/BungeeCord 代理实现跨服 TPA
- 跨服皮肤获取(基于 UUID)
- 兼容 Folia 的区域化调度
- 可配置传送延迟、移动取消、受伤取消
- 每种操作均有专属音效
- 世界别名用于更友好的地点名称显示
- PlaceholderAPI 占位符支持
- Modrinth 更新检查器(加入时通知 OP)
/tpastatus 管理员命令,显示 Redis 状态及已连接的服务器
命令
| 命令 |
描述 |
权限节点 |
/tpa <player> |
请求传送到某玩家处 |
tpaplugin.tpa |
/tpahere <player> |
请求某玩家传送到你这里 |
tpaplugin.tpahere |
/tpaaccept [player] |
打开接受 GUI 或接受特定请求 |
tpaplugin.tpaaccept |
/tpadeny [player] |
拒绝一个请求 |
tpaplugin.tpadeny |
/tpacancel <player> |
取消发出的请求 |
tpaplugin.tpacancel |
/tpatoggle |
切换接收 TPA 请求的状态 |
tpaplugin.tpatoggle |
/tpaheretoggle |
切换接收 TPAHERE 请求的状态 |
tpaplugin.tpaheretoggle |
/tpauto |
切换自动接受请求 |
tpaplugin.tpauto |
/tpaconfirmtoggle |
切换发送前的确认菜单 |
tpaplugin.confirmtoggle |
/tpastatus |
显示插件和 Redis 状态 |
tpaplugin.status |
/tpareload |
重载配置并重新连接 Redis |
tpaplugin.reload |
跨服设置 (Redis + Velocity)
跨服 TPA 允许玩家向连接到同一代理的其他后端服务器上的玩家发送 /tpa 和 /tpahere 请求。两个 Minecraft 服务器通过 Redis 进行通信。
设置 Redis
你需要一个单一的 Redis 服务器,供所有 Minecraft 后端访问。Redis 服务器可以运行在与代理相同的机器上,也可以运行在单独的机器上。
配置 Velocity
在你的代理服务器上打开 velocity.toml,找到 [servers] 部分:
[servers]
lobby = "127.0.0.1:25566"
survival = "127.0.0.1:25567"
try = ["lobby"]
左侧的名称(lobby, survival)是你必须在下面插件配置中使用的名称。
在每个后端服务器上配置插件
编辑每个 Minecraft 服务器上的 plugins/TPAPlugin/config.yml:
proxy:
enabled: true
server-blacklist: [] # 在此添加要阻止传送到的服务器名称
redis:
enabled: true
host: "127.0.0.1" # Redis 主机地址(如果是远程连接,请替换为实际 IP)
port: 6379
password: "" # 如果无需密码,请留空
server-name: "lobby" # 必须与 velocity.toml [servers] 中的名称完全匹配
server-name 必须与 velocity.toml [servers] 块中的键名完全一致(区分大小写)。如果你的 Velocity 配置中有 lobby = "...",则在此处设置为 server-name: "lobby"。
对每个后端服务器重复此操作,但使用对应的服务器名称(其中一个将是 lobby,另一个是 survival,以此类推)。
验证是否生效
- 启动 Redis
- 启动代理(Proxy)
- 启动各个后端服务器
- 通过代理加入游戏
- 运行
/tpastatus(作为 OP)
你应该看到:
Redis: Connected
Host: 127.0.0.1:6379
This server: lobby
Connected servers: survival
如果 Connected servers 为空,说明其他服务器未能连接到同一个 Redis。请检查所有服务器上的 Redis 主机地址和端口。
权限
| 权限 |
描述 |
默认值 |
tpaplugin.* |
所有权限 |
OP |
tpaplugin.tpa |
发送 TPA 请求 |
所有人 |
tpaplugin.tpahere |
发送 TPAHere 请求 |
所有人 |
tpaplugin.tpaaccept |
接受请求 |
所有人 |
tpaplugin.tpadeny |
拒绝请求 |
所有人 |
tpaplugin.tpacancel |
取消请求 |
所有人 |
tpaplugin.tpatoggle |
切换 TPA |
所有人 |
tpaplugin.tpaheretoggle |
切换 TPAHere |
所有人 |
tpaplugin.tpauto |
自动接受 |
所有人 |
tpaplugin.confirmtoggle |
切换 TPA 确认菜单 |
所有人 |
tpaplugin.status |
查看插件/Redis 状态 |
OP |
tpaplugin.reload |
重载插件 |
OP |
? PlaceholderAPI 占位符
| 占位符 |
描述 |
输出 |
%tpa_tpastatus% |
显示 TPA 是否启用 |
ON/OFF |
%tpa_tpaherestatus% |
显示 TPA Here 是否启用 |
ON/OFF |
%tpa_tpautostatus% |
显示自动接受是否启用 |
ON/OFF |
%tpa_confirmmenustatus% |
显示 TPA Here 是否启用 |
ON/OFF |
%tpa_pendingrequests% |
待处理请求的数量 |
数字 |
⚙️ 配置
config.yml
teleport-delay: 5
request-expire-time: 60
cancel-on-move: true
cancel-on-damage: true
proxy:
enabled: false
server-blacklist: []
redis:
enabled: false
host: "localhost"
port: 6379
password: ""
server-name: "server-1"
world-aliases:
world: "Overworld"
afk3: "AFK AREA"
world_nether: "Nether"
server-aliases:
lobby: "Lobby"
survival: "Survival"
# ===============================
# 消息
# ===============================
messages:
prefix: '&8[&9✦&bᴛᴘᴀ&5✦&8] &r'
tpa-sent: '&bᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ ꜱᴇɴᴛ ᴛᴏ &9{player}&b.'
tpa-received: '&9{player} &bʜᴀѕ ꜱᴇɴᴛ ʏᴏᴜ ᴀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
tpahere-sent: '&bᴛᴇʟᴇᴘᴏʀᴛ-ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛ ꜱᴇɴᴛ ᴛᴏ &9{player}&b.'
tpahere-received: '&9{player} &bᴡᴀɴᴛѕ ʏᴏᴜ ᴛᴏ ᴛᴇʟᴇᴘᴏʀᴛ ᴛᴏ ᴛʜᴇᴍ.'
request-accepted-receiver: '&bʏᴏᴜ ᴀᴄᴄᴇᴘᴛᴇᴅ &9{player}&b''ѕ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-accepted-sender: '&9{player} &bʜᴀѕ &aᴀᴄᴄᴇᴘᴛᴇᴅ &bʏᴏᴜʀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-denied-receiver: '&c你拒绝了 &9{player}&c 的传送请求。'
request-denied-sender: '&9{player} &c拒绝了你 的传送请求。'
request-cancelled: '&c你取消了向 &9{player} &c的传送请求。'
request-expired: '&c你向 &9{player} &c的传送请求已过期。'
no-pending-requests: '&c你没有待处理的传送请求。'
teleporting-in: '&b将在 &9{seconds}&b 秒后传送...'
teleported: '&b你已成功&b传送!'
teleport-cancelled-move: '&c传送已取消 &8(&7你移动了&8)'
teleport-cancelled-damage: '&c传送已取消 &8(&7你受到伤害&8)'
player-not-found: '&c未找到玩家。'
cannot-tpa-yourself: '&c你不能传送到自己这里。'
player-offline: '&c该玩家当前离线。'
tpa-disabled: '&9{player} &c已禁用传送请求。'
tpahere-disabled: '&9{player} &c已禁用“传送到我”请求。'
tpa-toggled-on: '&b传送请求现已 &9启用&b。'
tpa-toggled-off: '&c传送请求现已 &7禁用&c。'
tpahere-toggled-on: '&b“传送到我”请求现已 &9启用&b。'
tpahere-toggled-off: '&c“传送到我”请求现已 &7禁用&c。'
tpauto-enabled: '&b自动接受传送请求现已 &9启用&b。'
tpauto-disabled: '&c自动接受传送请求现已 &7禁用&c。'
already-have-request: '&c你已经与该玩家有一个待处理的请求。'
config-reloaded: '&b配置已成功 &9重新加载&b。'
no-permission: '&c你没有权限使用此命令。'
blacklisted-server: '&c你不能传送到黑名单服务器上的玩家处。'
tpa-confirm-enabled: '&bTPA 确认菜单现已 &a启用&b。'
tpa-confirm-disabled: '&bTPA 确认菜单现已 &c禁用&b。'
# ===============================
# Clickable Messages
# ===============================
click:
accept:
text: '&a[✔ 接受]'
hover: '&7点击以接受传送请求'
command: /tpaaccept {player}
deny:
text: '&c[✖ 拒绝]'
hover: '&7点击以拒绝传送请求'
command: /tpadeny {player}
# ===============================
# Sounds
# ===============================
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
GUI/tpa.yml
title: '&8传送请求'
size: 27
items:
accept:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&a&l接受'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&c&l拒绝'
player-head:
slot: 13
name: '&e{player}'
lore:
- '{request_type}'
- '&7飞行状态: {flight_status}'
- ''
- '&7剩余时间: &e{time}秒'
- '&7位置: &f{world}'
GUI/tpahere.yml
title: '&8传送到我请求'
size: 27
items:
accept:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&a&l接受'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&c&l拒绝'
player-head:
slot: 13
name: '&e{player}'
lore:
- '{request_type}'
- '&7飞行状态: {flight_status}'
- ''
- '&7剩余时间: &e{time}秒'
- '&7位置: &f{world}'
GUI/tpaaccept.yml
title: '&8待处理请求'
size: 54
request-item:
name: '&e{player}'
lore:
- '{request_type}'
- '&7飞行状态: {flight_status}'
- '&7位置: &f{world}'
- '&7剩余时间: &e{time}秒'
- ''
- '&a左键点击 &7以接受'
- '&c右键点击 &7以拒绝'
GUI/tpa-confirm.yml
tpa-confirm-menu:
enabled-by-default: true
title: '&8TPA 确认'
size: 27
player-head:
slot: 13
name: '&b{player}'
lore:
- '&7飞行状态: {flight_status}'
- '&7位置: &f{world}'
confirm:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&a确认'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&c取消'~~~~
? 代理支持
启用代理模式
- 在
config.yml 中设置 proxy.enabled: true
- 配置
server-blacklist 以防止传送到特定服务器
- 确保插件已安装在网络中的所有服务器上
服务器黑名单
玩家无法从黑名单服务器传送或传送到黑名单服务器:
proxy:
enabled: true
server-blacklist:
- lobby
- hub
- minigames
⚡ 性能优化
- 并发哈希映射用于线程安全的数据存储
- 异步文件 I/O 用于玩家数据
- 高效的请求过期处理,使用定时任务
- 内存优化的 GUI 渲染
- 最小化的数据包发送 以提升网络性能
- 兼容 Folia 的调度机制,支持多线程区块加载
? 支持
如有问题、建议或贡献:
TPAPlugin
A fully optimized, feature-rich TPA (Teleport Ask) plugin for Paper, Folia Purpur & More servers with customizable GUIs, clickable messages, sound effects, proxy support, HEX color Support, and PlaceholderAPI integration.
Features
/tpa <player> — request to teleport to another player
/tpahere <player> — request another player to teleport to you
- Confirm GUI before sending requests (per-player toggle)
- Accept/deny GUIs with player-head previews
- Pending requests list (
/tpaaccept)
- Per-player toggles: receive TPA, receive TPAHERE, auto-accept
- Cross-server TPA via Redis + Velocity/BungeeCord proxy
- Cross-server skin fetching (UUID-based)
- Folia-compatible regionized scheduling
- Configurable teleport delay, cancel-on-move, cancel-on-damage
- Sound effects per action
- World aliases for nicer location names
- PlaceholderAPI placeholders
- Modrinth update checker (notifies OPs on join)
/tpastatus admin command showing Redis status and connected servers
Commands
| Command |
Description |
Permission |
/tpa <player> |
Request to teleport to a player |
tpaplugin.tpa |
/tpahere <player> |
Ask a player to teleport to you |
tpaplugin.tpahere |
/tpaaccept [player] |
Open accept GUI or accept a specific request |
tpaplugin.tpaaccept |
/tpadeny [player] |
Deny a request |
tpaplugin.tpadeny |
/tpacancel <player> |
Cancel an outgoing request |
tpaplugin.tpacancel |
/tpatoggle |
Toggle receiving TPA requests |
tpaplugin.tpatoggle |
/tpaheretoggle |
Toggle receiving TPAHERE requests |
tpaplugin.tpaheretoggle |
/tpauto |
Toggle auto-accept |
tpaplugin.tpauto |
/tpaconfirmtoggle |
Toggle the confirm menu before sending |
tpaplugin.confirmtoggle |
/tpastatus |
Show plugin and Redis status |
tpaplugin.status |
/tpareload |
Reload config and reconnect Redis |
tpaplugin.reload |
Cross-Server Setup (Redis + Velocity)
Cross-server TPA lets players send /tpa and /tpahere requests to players on other backend servers connected through the same proxy. Both Minecraft servers communicate through Redis.
Set up Redis
You need a single Redis server that both Minecraft backends can reach. The Redis server can run on the same machine as your proxy or on a separate machine.
Configure Velocity
Open velocity.toml on your proxy and find the [servers] section:
[servers]
lobby = "127.0.0.1:25566"
survival = "127.0.0.1:25567"
try = ["lobby"]
The names on the left (lobby, survival) are the names you must use in the plugin config below.
Configure the plugin on each backend
Edit plugins/TPAPlugin/config.yml on each Minecraft server:
proxy:
enabled: true
server-blacklist: [] # Add server names here to block TPAing to them
redis:
enabled: true
host: "127.0.0.1" # Redis host (use the actual IP if remote)
port: 6379
password: "" # Leave empty if no password
server-name: "lobby" # MUST match the name in velocity.toml [servers]
The server-name must match exactly, case-sensitive, with the key in your velocity.toml [servers] block. If your Velocity has lobby = "...", set server-name: "lobby" here.
Repeat for each backend, but use the matching server name (one will be lobby, another survival, etc.).
Verify it works
- Start Redis
- Start the proxy
- Start each backend
- Join through the proxy
- Run
/tpastatus (as OP)
You should see:
Redis: Connected
Host: 127.0.0.1:6379
This server: lobby
Connected servers: survival
If Connected servers is empty, the other server isn't reaching the same Redis. Check the Redis host/port on both servers.
Permissions
| Permission |
Description |
Default |
tpaplugin.* |
All permissions |
OP |
tpaplugin.tpa |
Send TPA requests |
Everyone |
tpaplugin.tpahere |
Send TPAHere requests |
Everyone |
tpaplugin.tpaaccept |
Accept requests |
Everyone |
tpaplugin.tpadeny |
Deny requests |
Everyone |
tpaplugin.tpacancel |
Cancel requests |
Everyone |
tpaplugin.tpatoggle |
Toggle TPA |
Everyone |
tpaplugin.tpaheretoggle |
Toggle TPAHere |
Everyone |
tpaplugin.tpauto |
Auto-accept |
Everyone |
tpaplugin.confirmtoggle |
Toggle TPA Confirm Menu |
Everyone |
tpaplugin.status |
View plugin/Redis status |
OP |
tpaplugin.reload |
Reload plugin |
OP |
? PlaceholderAPI Placeholders
| Placeholder |
Description |
Output |
%tpa_tpastatus% |
Shows if TPA is enabled |
ON/OFF |
%tpa_tpaherestatus% |
Shows if TPA here is enabled |
ON/OFF |
%tpa_tpautostatus% |
Shows if auto-accept is enabled |
ON/OFF |
%tpa_confirmmenustatus% |
Shows if TPA here is enabled |
ON/OFF |
%tpa_pendingrequests% |
Number of pending requests |
Number |
⚙️ Configuration
config.yml
teleport-delay: 5
request-expire-time: 60
cancel-on-move: true
cancel-on-damage: true
proxy:
enabled: false
server-blacklist: []
redis:
enabled: false
host: "localhost"
port: 6379
password: ""
server-name: "server-1"
world-aliases:
world: "Overworld"
afk3: "AFK AREA"
world_nether: "Nether"
server-aliases:
lobby: "Lobby"
survival: "Survival"
# ===============================
# Messages
# ===============================
messages:
prefix: '&8[&9✦&bᴛᴘᴀ&5✦&8] &r'
tpa-sent: '&bᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ ꜱᴇɴᴛ ᴛᴏ &9{player}&b.'
tpa-received: '&9{player} &bʜᴀѕ ꜱᴇɴᴛ ʏᴏᴜ ᴀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
tpahere-sent: '&bᴛᴇʟᴇᴘᴏʀᴛ-ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛ ꜱᴇɴᴛ ᴛᴏ &9{player}&b.'
tpahere-received: '&9{player} &bᴡᴀɴᴛѕ ʏᴏᴜ ᴛᴏ ᴛᴇʟᴇᴘᴏʀᴛ ᴛᴏ ᴛʜᴇᴍ.'
request-accepted-receiver: '&bʏᴏᴜ ᴀᴄᴄᴇᴘᴛᴇᴅ &9{player}&b''ѕ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-accepted-sender: '&9{player} &bʜᴀѕ &aᴀᴄᴄᴇᴘᴛᴇᴅ &bʏᴏᴜʀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-denied-receiver: '&cʏᴏᴜ ᴅᴇɴɪᴇᴅ &9{player}&c''ѕ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-denied-sender: '&9{player} &cʜᴀѕ ᴅᴇɴɪᴇᴅ &cʏᴏᴜʀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ.'
request-cancelled: '&cʏᴏᴜ ᴄᴀɴᴄᴇʟʟᴇᴅ ʏᴏᴜʀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ ᴛᴏ &9{player}&c.'
request-expired: '&cʏᴏᴜʀ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ ᴛᴏ &9{player} &cʜᴀѕ ᴇxᴘɪʀᴇᴅ.'
no-pending-requests: '&cʏᴏᴜ ʜᴀᴠᴇ ɴᴏ ᴘᴇɴᴅɪɴɢ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛѕ.'
teleporting-in: '&bᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ɪɴ &9{seconds}&b ꜱᴇᴄᴏɴᴅѕ...'
teleported: '&bʏᴏᴜ ʜᴀᴠᴇ ʙᴇᴇɴ &9ꜱᴜᴄᴄᴇꜱꜱꜰᴜʟʟʏ ᴛᴇʟᴇᴘᴏʀᴛᴇᴅ&b!'
teleport-cancelled-move: '&cᴛᴇʟᴇᴘᴏʀᴛ ᴄᴀɴᴄᴇʟʟᴇᴅ &8(&7ʏᴏᴜ ᴍᴏᴠᴇᴅ&8)'
teleport-cancelled-damage: '&cᴛᴇʟᴇᴘᴏʀᴛ ᴄᴀɴᴄᴇʟʟᴇᴅ &8(&7ʏᴏᴜ ᴛᴏᴏᴋ ᴅᴀᴍᴀɢᴇ&8)'
player-not-found: '&cᴘʟᴀʏᴇʀ ɴᴏᴛ ꜰᴏᴜɴᴅ.'
cannot-tpa-yourself: '&cʏᴏᴜ ᴄᴀɴɴᴏᴛ ᴛᴇʟᴇᴘᴏʀᴛ ᴛᴏ ʏᴏᴜʀꜱᴇʟꜰ.'
player-offline: '&cᴛʜᴀᴛ ᴘʟᴀʏᴇʀ ɪѕ ᴄᴜʀʀᴇɴᴛʟʏ ᴏꜰꜰʟɪɴᴇ.'
tpa-disabled: '&9{player} &cʜᴀѕ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛѕ ᴅɪѕᴀʙʟᴇᴅ.'
tpahere-disabled: '&9{player} &cʜᴀѕ ᴛᴇʟᴇᴘᴏʀᴛ-ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛѕ ᴅɪѕᴀʙʟᴇᴅ.'
tpa-toggled-on: '&bᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛѕ ᴀʀᴇ ɴᴏᴡ &9ᴇɴᴀʙʟᴇᴅ&b.'
tpa-toggled-off: '&cᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛѕ ᴀʀᴇ ɴᴏᴡ &7ᴅɪѕᴀʙʟᴇᴅ&c.'
tpahere-toggled-on: '&bᴛᴇʟᴇᴘᴏʀᴛ-ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛѕ ᴀʀᴇ ɴᴏᴡ &9ᴇɴᴀʙʟᴇᴅ&b.'
tpahere-toggled-off: '&cᴛᴇʟᴇᴘᴏʀᴛ-ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛѕ ᴀʀᴇ ɴᴏᴡ &7ᴅɪѕᴀʙʟᴇᴅ&c.'
tpauto-enabled: '&bᴀᴜᴛᴏ-ᴀᴄᴄᴇᴘᴛ ɪѕ ɴᴏᴡ &9ᴇɴᴀʙʟᴇᴅ&b.'
tpauto-disabled: '&cᴀᴜᴛᴏ-ᴀᴄᴄᴇᴘᴛ ɪѕ ɴᴏᴡ &7ᴅɪѕᴀʙʟᴇᴅ&c.'
already-have-request: '&cʏᴏᴜ ᴀʟʀᴇᴀᴅʏ ʜᴀᴠᴇ ᴀ ᴘᴇɴᴅɪɴɢ ʀᴇǫᴜᴇѕᴛ ᴡɪᴛʜ ᴛʜɪѕ ᴘʟᴀʏᴇʀ.'
config-reloaded: '&bᴄᴏɴꜰɪɢᴜʀᴀᴛɪᴏɴ ʀᴇʟᴏᴀᴅᴇᴅ &9ꜱᴜᴄᴄᴇꜱꜱꜰᴜʟʟʏ&b.'
no-permission: '&cʏᴏᴜ ᴅᴏ ɴᴏᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪꜱꜱɪᴏɴ ᴛᴏ ᴜꜱᴇ ᴛʜɪꜱ ᴄᴏᴍᴍᴀɴᴅ.'
blacklisted-server: '&cʏᴏᴜ ᴄᴀɴɴᴏᴛ ᴛᴇʟᴇᴘᴏʀᴛ ᴛᴏ ᴘʟᴀʏᴇʀѕ ᴏɴ ᴛʜᴀᴛ ꜱᴇʀᴠᴇʀ.'
tpa-confirm-enabled: '&bᴛᴘᴀ ᴄᴏɴꜰɪʀᴍ ᴍᴇɴᴜ ɪѕ ɴᴏᴡ &aᴇɴᴀʙʟᴇᴅ&b.'
tpa-confirm-disabled: '&bᴛᴘᴀ ᴄᴏɴꜰɪʀᴍ ᴍᴇɴᴜ ɪѕ ɴᴏᴡ &cᴅɪѕᴀʙʟᴇᴅ&b.'
# ===============================
# Clickable Messages
# ===============================
click:
accept:
text: '&a[✔ ᴀᴄᴄᴇᴘᴛ]'
hover: '&7ᴄʟɪᴄᴋ ᴛᴏ ᴀᴄᴄᴇᴘᴛ ᴛʜᴇ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ'
command: /tpaaccept {player}
deny:
text: '&c[✖ ᴅᴇɴʏ]'
hover: '&7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇɴʏ ᴛʜᴇ ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ'
command: /tpadeny {player}
# ===============================
# Sounds
# ===============================
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
GUI/tpa.yml
title: '&8ᴛᴇʟᴇᴘᴏʀᴛ ʀᴇǫᴜᴇѕᴛ'
size: 27
items:
accept:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&a&lᴀᴄᴄᴇᴘᴛ'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&c&lᴅᴇɴʏ'
player-head:
slot: 13
name: '&e{player}'
lore:
- '{request_type}'
- '&7ꜰʟɪɢʜᴛ: {flight_status}'
- ''
- '&7ᴇxᴘɪʀᴇѕ ɪɴ: &e{time}ѕ'
- '&7ʟᴏᴄᴀᴛɪᴏɴ: &f{world}'
GUI/tpahere.yml
title: '&8ᴛᴇʟᴇᴘᴏʀᴛ ʜᴇʀᴇ ʀᴇǫᴜᴇѕᴛ'
size: 27
items:
accept:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&a&lᴀᴄᴄᴇᴘᴛ'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&c&lᴅᴇɴʏ'
player-head:
slot: 13
name: '&e{player}'
lore:
- '{request_type}'
- '&7ꜰʟɪɢʜᴛ: {flight_status}'
- ''
- '&7ᴇxᴘɪʀᴇѕ ɪɴ: &e{time}ѕ'
- '&7ʟᴏᴄᴀᴛɪᴏɴ: &f{world}'
GUI/tpaaccept.yml
title: '&8ᴘᴇɴᴅɪɴɢ ʀᴇǫᴜᴇѕᴛѕ'
size: 54
request-item:
name: '&e{player}'
lore:
- '{request_type}'
- '&7ꜰʟɪɢʜᴛ: {flight_status}'
- '&7ʟᴏᴄᴀᴛɪᴏɴ: &f{world}'
- '&7ᴛɪᴍᴇ ʟᴇꜰᴛ: &e{time}ѕ'
- ''
- '&aʟᴇꜰᴛ-ᴄʟɪᴄᴋ &7ᴛᴏ ᴀᴄᴄᴇᴘᴛ'
- '&cʀɪɢʜᴛ-ᴄʟɪᴄᴋ &7ᴛᴏ ᴅᴇɴʏ'
GUI/tpa-confirm.yml
tpa-confirm-menu:
enabled-by-default: true
title: '&8ᴛᴘᴀ ᴄᴏɴꜰɪʀᴍ'
size: 27
player-head:
slot: 13
name: '&b{player}'
lore:
- '&7ꜰʟɪɢʜᴛ: {flight_status}'
- '&7ʟᴏᴄᴀᴛɪᴏɴ: &f{world}'
confirm:
slot: 15
material: LIME_STAINED_GLASS_PANE
name: '&aᴄᴏɴꜰɪʀᴍ'
deny:
slot: 11
material: RED_STAINED_GLASS_PANE
name: '&cᴄᴀɴᴄᴇʟ'~~~~
? Proxy Support
Enabling Proxy Mode
- Set
proxy.enabled: true in config.yml
- Configure
server-blacklist to prevent teleports to specific servers
- Ensure plugin is installed on all servers in your network
Server Blacklist
Players cannot teleport to/from servers in the blacklist:
proxy:
enabled: true
server-blacklist:
- lobby
- hub
- minigames
⚡ Performance Optimizations
- Concurrent Hash Maps for thread-safe data storage
- Asynchronous file I/O for player data
- Efficient request expiration with scheduled tasks
- Memory-optimized GUI rendering
- Minimal packet sending for better network performance
- Folia-compatible scheduling for multi-threaded chunk loading
? Support
For issues, suggestions, or contributions:
评论 0
登录后参与评分
还没有评论,来抢沙发吧