Release 1.6.0 with TPA replication

This commit is contained in:
2026-06-25 23:40:30 +08:00
parent b57c7d4843
commit 2479192ad3
27 changed files with 2344 additions and 223 deletions
+38
View File
@@ -37,6 +37,44 @@ tpsbar:
# on: 始终启用插件实现;若服务端已有原生命令,则自动跳过以避免冲突
mode: auto
tpa:
# TPA 请求有效时间,单位为秒
timeout-seconds: 60
# 是否让 /tpa 接受后传送到接受时目标所在的位置快照,而不是传送完成时目标当前位置。
strict-tpa-requests: false
# 是否让 /tpahere 接受后传送到请求发起时的位置,而不是请求者当前所在位置。
# 该行为与 HuskHomes 的 strict_tpa_here_requests 默认值一致。
strict-tpahere-requests: true
# 接受请求后的传送预热时间,单位为秒。设置为 0 可关闭预热。
warmup-seconds: 5
# 预热期间移动是否取消传送。
cancel-warmup-on-move: true
# 预热期间受到伤害是否取消传送。
cancel-warmup-on-damage: true
cooldowns:
# 是否启用 TPA 冷却系统。
enabled: true
cooldown-times:
# 发送传送请求后的冷却时间,单位为秒。0 表示关闭。
SEND_TELEPORT_REQUEST: 0
# 接受传送请求后的冷却时间,单位为秒。0 表示关闭。
ACCEPT_TELEPORT_REQUEST: 0
# 判断移动取消的曼哈顿距离阈值。0.1 与 HuskHomes 行为接近,可避免只转头就取消。
warmup-move-threshold: 0.1
# 预热倒计时显示位置:actionbar / chat / none。
warmup-display: actionbar
sounds:
# 是否播放 TPA 相关音效。
enabled: true
# 收到请求时播放的音效。
request-received: "entity.experience_orb.pickup"
# 预热倒计时时播放的音效。
warmup: "block.note_block.banjo"
# 预热被取消时播放的音效。
cancelled: "entity.item.break"
# 传送完成时播放的音效。
complete: "entity.enderman.teleport"
blocks-menu:
# 菜单布局版本,用于后续自动迁移槽位布局
layout-version: 2
+46
View File
@@ -82,10 +82,56 @@ help:
seen: " &f/seen &7- View player information"
feed: " &f/feed &7- Restore hunger"
repair: " &f/repair &7- Repair held or all items"
tpa: " &f/tpa <player> &7- Request to teleport to a player"
tpahere: " &f/tpahere <player> &7- Request a player teleport to you"
tpaall: " &f/tpaall &7- Request all players teleport to you"
tpaccept: " &f/tpaccept [player] &7- Accept a teleport request"
tpdeny: " &f/tpdeny [player] &7- Deny a teleport request"
tpignore: " &f/tpignore &7- Toggle ignoring teleport requests"
admin: " &f/essc admin &7- Toggle admin mode"
tpsbar: " &f/tpsbar [player] &7- Toggle TPS boss bar"
maintenance: " &f/maintenance <on|off|status|reload|add|remove|list> &7- Manage maintenance mode"
tpa:
messages:
usage-tpa: "&cUsage: /tpa <player>"
usage-tpahere: "&cUsage: /tpahere <player>"
usage-tpaall: "&cUsage: /tpaall"
usage-tpaccept: "&cUsage: /tpaccept [player]"
usage-tpdeny: "&cUsage: /tpdeny [player]"
self: "&cYou cannot send a teleport request to yourself."
sent-tpa: "&aSent a teleport request to {target}. It expires in {seconds} seconds."
sent-tpahere: "&aInvited {target} to teleport to you. The request expires in {seconds} seconds."
duplicate-request: "&eYou already have a pending request of this type for {target}."
ignoring-requests: "&cYou are currently ignoring teleport requests."
send-cooldown: "&cPlease wait {seconds} seconds before sending another teleport request."
accept-cooldown: "&cPlease wait {seconds} seconds before accepting another teleport request."
received-tpa: "&e{requester} wants to teleport to you."
received-tpahere: "&e{requester} invited you to teleport to them."
response-hint: "&7Type &f/tpaccept {requester} &7to accept or &f/tpdeny {requester} &7to deny."
accept-button: "&a[Accept]"
deny-button: "&c[Deny]"
no-request: "&cYou do not have any pending teleport requests."
accepted-target: "&aAccepted {requester}'s teleport request."
accepted-sender: "&a{target} accepted your teleport request."
denied-target: "&cDenied {requester}'s teleport request."
denied-sender: "&c{target} denied your teleport request."
expired: "&cYour pending teleport request has expired."
expired-sender: "&cYour teleport request to {target} expired."
expired-target: "&cThe teleport request from {requester} expired."
player-offline: "&cTeleport failed because a player in the request is now offline."
already-warming-up: "&cA related player is already warming up for teleportation."
warmup-start: "&eTeleporting in {seconds} seconds. Do not move or take damage."
warmup-status: "&eTeleporting in {seconds} seconds"
warmup-cancelled-move: "&cTeleport cancelled because you moved during warmup."
warmup-cancelled-damage: "&cTeleport cancelled because you took damage during warmup."
teleport-complete: "&aTeleport complete."
ignore-enabled: "&eYou are now ignoring teleport requests."
ignore-disabled: "&aYou are now accepting teleport requests."
ignore-notification: "&7You are currently ignoring teleport requests."
tpaall-sent: "&aSent teleport requests to all players."
tpaall-no-targets: "&cThere are no online players who can receive the request."
blocks-menu:
title: "&6&lEssentialsC &8- &e&lShortcut Menu"
items:
+46
View File
@@ -82,10 +82,56 @@ help:
seen: " &f/seen &7- 查看玩家信息"
feed: " &f/feed &7- 恢复饥饿值"
repair: " &f/repair &7- 修复手中或全部物品"
tpa: " &f/tpa <玩家> &7- 请求传送到玩家身边"
tpahere: " &f/tpahere <玩家> &7- 请求玩家传送到你身边"
tpaall: " &f/tpaall &7- 向所有玩家发送传送到你身边的请求"
tpaccept: " &f/tpaccept [玩家] &7- 接受传送请求"
tpdeny: " &f/tpdeny [玩家] &7- 拒绝传送请求"
tpignore: " &f/tpignore &7- 切换是否忽略传送请求"
admin: " &f/essc admin &7- 切换管理模式"
tpsbar: " &f/tpsbar [玩家] &7- 切换 TPS 状态栏"
maintenance: " &f/maintenance <on|off|status|reload|add|remove|list> &7- 管理维护模式"
tpa:
messages:
usage-tpa: "&c用法:/tpa <玩家>"
usage-tpahere: "&c用法:/tpahere <玩家>"
usage-tpaall: "&c用法:/tpaall"
usage-tpaccept: "&c用法:/tpaccept [玩家]"
usage-tpdeny: "&c用法:/tpdeny [玩家]"
self: "&c你不能向自己发送传送请求。"
sent-tpa: "&a已向 {target} 发送传送请求,{seconds} 秒后过期。"
sent-tpahere: "&a已邀请 {target} 传送到你身边,{seconds} 秒后过期。"
duplicate-request: "&e你已经向 {target} 发送过同类型传送请求,请等待对方处理。"
ignoring-requests: "&c你当前正在忽略传送请求。"
send-cooldown: "&c请等待 {seconds} 秒后再发送传送请求。"
accept-cooldown: "&c请等待 {seconds} 秒后再接受传送请求。"
received-tpa: "&e{requester} 请求传送到你身边。"
received-tpahere: "&e{requester} 邀请你传送到对方身边。"
response-hint: "&7输入 &f/tpaccept {requester} &7接受,或 &f/tpdeny {requester} &7拒绝。"
accept-button: "&a[接受]"
deny-button: "&c[拒绝]"
no-request: "&c你没有待处理的传送请求。"
accepted-target: "&a你已接受 {requester} 的传送请求。"
accepted-sender: "&a{target} 已接受你的传送请求。"
denied-target: "&c你已拒绝 {requester} 的传送请求。"
denied-sender: "&c{target} 拒绝了你的传送请求。"
expired: "&c你的待处理传送请求已过期。"
expired-sender: "&c你发给 {target} 的传送请求已过期。"
expired-target: "&c来自 {requester} 的传送请求已过期。"
player-offline: "&c无法完成传送,请求中的玩家已离线。"
already-warming-up: "&c相关玩家已有一个正在预热的传送。"
warmup-start: "&e传送将在 {seconds} 秒后开始,请不要移动或受到伤害。"
warmup-status: "&e传送倒计时:{seconds} 秒"
warmup-cancelled-move: "&c传送已取消:你在预热期间移动了。"
warmup-cancelled-damage: "&c传送已取消:你在预热期间受到了伤害。"
teleport-complete: "&a传送完成。"
ignore-enabled: "&e你已开始忽略传送请求。"
ignore-disabled: "&a你已恢复接收传送请求。"
ignore-notification: "&7你当前正在忽略传送请求。"
tpaall-sent: "&a已向所有玩家发送传送请求。"
tpaall-no-targets: "&c没有可接收请求的在线玩家。"
blocks-menu:
title: "&6&lEssentialsC &8- &e&l便捷菜单"
items:
+1 -1
View File
@@ -13,7 +13,7 @@ modules:
# 工作台、铁砧等便捷方块命令、/essc blocks 菜单和潜影盒快捷打开。
enabled: true
player:
# 玩家常用命令:飞行、夜视、发光、治疗、喂食、修复、帽子、自杀、隐身查询玩家。
# 玩家常用命令:飞行、夜视、发光、治疗、喂食、修复、帽子、自杀、隐身查询玩家和 TPA
enabled: true
admin-mode:
# /essc admin 管理模式,以及独立背包和状态管理。
+32
View File
@@ -77,6 +77,30 @@ permissions:
essentialsc.command.repair.all:
description: 允许使用 /repair all
default: op
essentialsc.command.tpa:
description: 允许发送 /tpa 请求
default: true
essentialsc.command.tpahere:
description: 允许发送 /tpahere 请求
default: true
essentialsc.command.tpaall:
description: 允许向所有玩家发送 /tpahere 请求
default: op
essentialsc.command.tpaccept:
description: 允许接受 TPA 请求
default: true
essentialsc.command.tpdeny:
description: 允许拒绝 TPA 请求
default: true
essentialsc.command.tpignore:
description: 允许切换是否忽略 TPA 请求
default: true
essentialsc.tpa.bypass-warmup:
description: 允许绕过 TPA 传送预热
default: op
essentialsc.tpa.bypass-cooldown:
description: 允许绕过 TPA 冷却
default: op
essentialsc.command.admin:
description: 允许使用 /essc admin
default: op
@@ -133,6 +157,14 @@ permissions:
essentialsc.command.feed.others: true
essentialsc.command.repair: true
essentialsc.command.repair.all: true
essentialsc.command.tpa: true
essentialsc.command.tpahere: true
essentialsc.command.tpaall: true
essentialsc.command.tpaccept: true
essentialsc.command.tpdeny: true
essentialsc.command.tpignore: true
essentialsc.tpa.bypass-warmup: true
essentialsc.tpa.bypass-cooldown: true
essentialsc.command.admin: true
essentialsc.command.help: true
essentialsc.command.reload: true