pvp-toggle

插件

· 作者 LukeOnuke

让你的玩家自行决定是否开启 PVP!

0 本站下载 0 关注 更新于 11 个月前

最新 3.1.3 · 1.21.11 · Paper / Purpur

一键开服(送7天)

PVP 切换

让你的玩家选择何时进行战斗!当一名玩家受到保护时,他们不会受到其他玩家的伤害,同时也无法伤害其他玩家。

提供丰富的配置选项!

命令

命令 用途 权限 别名
/pvp 切换 PVP 状态 pvptoggle.pvp 无
/pvp <user> 切换指定用户的 PVP 状态 pvptoggle.pvp.others 无
/pvp reload 重新加载插件 pvptoggle.reload 无
/pvpstatus 查看自己是否受到 PVP 保护 pvptoggle.pvpstatus /pstatus, /ps
/pvpstatus <user> 查看其他人是否受到 PVP 保护 pvptoggle.pvpstatus.others /pstatus, /ps

PlaceholderAPI 集成

本插件支持 PlaceholderAPI,并提供以下占位符。

  • %pvp-toggle_vulnerable% 玩家是否脆弱,以可配置的人类可读语言表示。
  • %pvp-toggle_boolvulnerable% 玩家是否脆弱,以 true 或 false 表示。

默认配置文件

# 消息前缀应为什么?
# 您可以使用 https://minecraft.wiki/w/Formatting_codes#Color_codes 列出的格式化代码
prefix: "§4PvP »"

# PVP 是否默认开启?
default-pvp: false

# 是否有世界禁用了 PVPToggle?
disabled-worlds:
#  - world

# 如果玩家在冷却期间尝试使用 PVP 命令,发送给玩家的消息是什么?
# %s 将被替换为剩余时间,格式如 "1 minute and 32 seconds" 或 "32 seconds"
cooldown-message: "%s of cooldown remaining."

# 启用 PVP 后,玩家需要等待多少秒才能禁用它?
cooldown: 120

# 是否防止玩家在战斗中禁用 PVP?
anti-abuse: true

# 玩家是否能攻击自己?
hit-self: true

# 当玩家被击中但受到保护时,是否生成粒子效果?
particles: true

# 当玩家试图攻击另一个玩家但因对方受保护而失败时,是否向该玩家发送消息?
feedback: true

# 玩家死亡时是否重置其 PVP 状态?
death-status-reset: true

# 玩家死亡后是否开启 PVP?如果 death-status-reset 为 false,则不适用。
death-status: false

# 玩家死亡时,其冷却时间应设置为多少秒?设为 -1 以禁用。
death-cooldown: -1

# 经过多少秒后自动重新启用玩家的 PVP?设为 -1 以禁用。
limited-time: -1

# 当玩家的 PVP 自动重新启用时,是否向玩家发送聊天消息?
limited-message: "You are now %s"

# 玩家死亡时,是否向玩家发送聊天消息?
death-message: "You are now %s"

# 玩家是否能攻击受保护玩家的宠物?
protect-pets: true

# 玩家是否永远能攻击自己的宠物?(更多“友军”功能即将推出)
friendly-fire: false

# 当玩家试图攻击某人但因对方受保护而失败时,消息应该是什么?
# %s 将被替换为被攻击者的名称。
pvp-off-message: "You can't fight %s!"
# %r 将被替换为宠物的名称,例如 "Wolf" 或 "King George II."
pet-pvp-message: "You can't fight %s's %r!"

# 当你试图攻击自己的队伍但因 friendly-fire 为 false 而失败时,消息应该是什么?
ff-message: "Friendly fire!"

# 切换 PVP 时的消息应该是什么?
# %s 将被替换为新状态,默认为 "Vulnerable" 或 "Protected"。
toggle-message: "You are now %s"

# 当控制台尝试执行只有玩家才能执行的操作时,消息应该是什么?
console-message: "§cYou can't use this command from the console."

# 当有人尝试做某事但因没有权限而无法进行时,消息应该是什么?
permission-message: "You don't have permission to use this command."

# 重新加载此插件后的消息应该是什么?
reload-message: "Reloaded!"

# 当目标玩家找不到时,消息应该是什么?
# %s 将被替换为目标玩家的名称。
not-found-message: "%s isn't online."

# 切换另一个玩家的 PVP 后的消息应该是什么?
# %s 将被替换为目标玩家的名称。
# %r 将被替换为新状态,默认为 "Vulnerable" 或 "Protected"。
remote-toggle-message: "%s is now %r"

# 检查 PVP 状态时的消息应该是什么?
# %s 是玩家名称
# %r 是状态;默认为 "Vulnerable" 或 "Protected"。(参见:`disabled` 和 `enabled`)
pvp-status-message: "Status of %s is now %r"

# PVP 两种状态的词语应该是什么?
disabled: "§aProtected"
enabled: "§cVulnerable"

pvp-toggle 与 Microsoft Corporation 无关 Minecraft 是 Microsoft Corporation 的注册商标

pvp-toggle 与 Rinth Inc 无关,"Modrinth" 是 Rinth Inc 的注册商标

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源