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 的注册商标
PVP Toggle
Let your players choose when they want to fight! When a player is protected, they can't get damaged by other players and also can't damage other players themselves.
Extensive configuration!
Commands
| Command |
Use |
Permission |
Aliases |
/pvp |
Toggle pvp |
pvptoggle.pvp |
N/A |
/pvp <user> |
Toggle pvp for user |
pvptoggle.pvp.others |
N/A |
/pvp reload |
Reload the plugin |
pvptoggle.reload |
N/A |
/pvpstatus |
Get if you are protected from pvp |
pvptoggle.pvpstatus |
/pstatus, /ps |
/pvpstatus <user> |
Get if someone else is protected from pvp |
pvptoggle.pvpstatus.others |
/pstatus, /ps |
PlaceholderAPI Integration
This plugin supports PlaceholderAPI, and comes with the following placeholders.
%pvp-toggle_vulnerable% Is the player vulnerable, expressed in configurable human-readable language.
%pvp-toggle_boolvulnerable% Is the player vulnerable, expressed in true of false.
Default config
# What should messages be prefixed with?
# You can use the formatting codes listed at https://minecraft.wiki/w/Formatting_codes#Color_codes
prefix: "§4PvP »"
# Should pvp be on by default?
default-pvp: false
# Do any worlds have PVPToggle disabled?
disabled-worlds:
# - world
# What is the message sent to players in the chat if they try to use the pvp command while on cooldown?
# %s is replaced by the time remaining, in the format of "1 minute and 32 seconds" or "32 seconds"
cooldown-message: "%s of cooldown remaining."
# After enabling pvp, how many seconds must a player wait before disabling it?
cooldown: 120
# Should players be prevented from disabling pvp during a fight?
anti-abuse: true
# Should players be able to hit themselves?
hit-self: true
# Should particles be spawned when a player is hit, but protected?
particles: true
# Should a message be sent to a player when they hit another player, but fail because that player is protected?
feedback: true
# Should a player's pvp status be reset when they die?
death-status-reset: true
# Should pvp be turned on after a player dies? Doesn't apply if death-status-reset is false.
death-status: false
# How many seconds should a player's cooldown be set to when they die? -1 to disable.
death-cooldown: -1
# After how many seconds should a player's pvp be automatically re-enabled? -1 to disable.
limited-time: -1
# Should a player be sent a chat message when their pvp is automatically re-enabled?
limited-message: "You are now %s"
# Should a player be sent a chat message when they die?
death-message: "You are now %s"
# Should players be able to attack pets of protected players?
protect-pets: true
# Should players ever be able to hit their own pets? (More "friendlies" coming soon)
friendly-fire: false
# What should the message be when a player tries to attack someone but fails because they're protected?
# %s is replaced with the name of the attacked.
pvp-off-message: "You can't fight %s!"
# %r is replaced with the name of the pet, for example "Wolf" or "King George II."
pet-pvp-message: "You can't fight %s's %r!"
# What should the message be when you try to attack your own team, but fail because friendly-fire is false?
ff-message: "Friendly fire!"
# What should the message be when toggle pvp?
# %s is replaced with the new state, "Vulnerable" or "Protected" by default.
toggle-message: "You are now %s"
# What should the message be when the console tries to do something that only players can do?
console-message: "§cYou can't use this command from the console."
# What should the message be when someone tries to do something, but can't because they don't have permission to?
permission-message: "You don't have permission to use this command."
# What should the message be after reloading this plugin?
reload-message: "Reloaded!"
# What should the message be when the targeted player can't be found?
# %s is replaced with the name of the targeted player.
not-found-message: "%s isn't online."
# What should the message be after toggling another player's pvp?
# %s is replaced with the name of the targeted player.
# %r is replaced with the new state, "Vulnerable" or "Protected" by default.
remote-toggle-message: "%s is now %r"
# What should the message be for checking pvp status?
# %s is the name of the player
# %r is the state; "Vulnerable" or "Protected" by default. (See: `disabled` and `enabled`)
pvp-status-message: "Status of %s is now %r"
# What should the words for the two states of pvp be?
disabled: "§aProtected"
enabled: "§cVulnerable"
pvp-toggle IS NOT AFFILIATED WITH Microsoft Corporation, Minecraft IS A REGISTERED TRADEMARK OF Microsoft Corporation
pvp-toggle IS NOT AFFILIATED WITH Rinth Inc, "Modrinth" IS A REGISTERED TRADEMARK OF Rinth Inc
评论 0
登录后参与评分
还没有评论,来抢沙发吧