PerPlayer PVP(简称 P2 PVP)是一个简单的插件,确保在 PvP 开始之前双方都同意。
功能
- 切换自己的 PvP
- 切换他人的 PvP
- 可切换模式(接收或共享)
- 默认情况下为玩家提供轻松的上手体验

切换 PvP
要切换 PvP,只需运行 /pvpToggle 命令,并选择 true 或 false(true:开启,false:关闭)。
切换他人 PvP
你可以使用上述相同的 /pvpToggle <true|false> 命令来切换其他玩家的 PvP,但在末尾加上用户名,使其变为 /pvpToggle <true|false> <username>。
注意:目前这仅适用于在线玩家,离线玩家支持即将推出™
所需权限:p2pvp.edit,同时通过 p2pvp.edit.invisible 通知玩家,否则不通知
编辑配置
可以使用 /pvpManage 命令编辑配置,后跟选项以编辑或 reload 从插件的 config.yml 文件加载配置。命令语法如下:
- 从
config.yml 加载:/pvpManage reload
- 查看配置的当前值:
/pvpManage <option>
- 设置配置的值:
/pvpManage <option> <value> (值应根据选项自动补全)
所需权限:p2pvp.manage
所有配置选项可以通过 /pvpManage 命令修改,或者通过编辑插件文件夹中的文件进行修改。
模式
模式决定了当一个玩家攻击另一个玩家时模组的行为方式。可以是以下之一:
默认:shared
下表确定在该模式下攻击是否会被允许
| 模式 |
攻击者 |
受害者 |
允许? |
| receiving |
❌ |
✅ |
✅ |
| receiving |
✅ |
❌ |
❌ |
| receiving |
✅ |
✅ |
✅ |
|
|
|
|
| shared |
❌ |
✅ |
❌ |
| shared |
✅ |
❌ |
❌ |
| shared |
✅ |
✅ |
✅ |
默认
这决定用户是否应无需选择就加入 PvP。
默认:false
问候语
玩家在首次加入服务器时是否应该意识到该插件的存在。
默认:true
注意:这实际上是 greeter.enabled。还有一个 greeter.message 用于配置问候语的内容,但这只能通过文件进行编辑
以下所有权限都以 p2pvp. 为前缀,并且全部小写。
Manage
授予通过 /pvpManage 命令编辑配置的访问权限。
默认:op
Edit
允许编辑其他玩家的 PvP 状态,除非你拥有 p2pvp.edit.invisible,否则玩家会在发生这种情况时收到通知。
默认:op
Set
让玩家设置自己的 PvP 偏好。
默认:true
PerPlayer PVP (or P2 PVP for short) is a simple plugin that ensures that both parties consent to PVP before it can commence.
Features
- Toggling own PVP
- Toggling others PVP
- Toggleable modes (receiving or shared)
- Easy onboarding for players by default

Toggle PVP
In order to toggle PVP simply run the /pvpToggle command with your choice of PVP being either true or false (true: on, false: off).
Toggling others PVP
You can toggle PVP for other players using the same /pvpToggle <true|false> command from above but by prepending a username onto the end so it becomes /pvpToggle <true|false> <username>.
Note: This currently only works with players that are online, offline player support is soon™
Permission required: p2pvp.edit while notifying players with p2pvp.edit.invisible doing so without notification
Edit Config
Config can be edited using the /pvpManage command followed by the option to edit or reloadto load the config from the plugins config.yml file. The syntax for the command is as follows:
- Loading from
config.yml: /pvpManage reload
- Viewing the current value of a config:
/pvpManage <option>
- Set the value of a config:
/pvpManage <option> <value> (Value should autocomplete depending on the option)
Permission required: p2pvp.manage
All configuration options can be modified with the /pvpManage command or via editing the file in the plugin's folder.
Mode
The mode determines how the mod should behave when one player attacks another. Can be one of the following:
Default: shared
And this table determines whether the attack will go through in that mode
| Mode |
Attacker |
Victim |
Allowed? |
| receiving |
❌ |
✅ |
✅ |
| receiving |
✅ |
❌ |
❌ |
| receiving |
✅ |
✅ |
✅ |
|
|
|
|
| shared |
❌ |
✅ |
❌ |
| shared |
✅ |
❌ |
❌ |
| shared |
✅ |
✅ |
✅ |
Default
This decides whether the user should be opted into PVP without having to choose.
Default: false
Greeter
Whether players should be made aware of the plugins presence when first joining the server.
Default: true
Note: This is actually greeter.enabled. There is also greeter.message to configure what the greeter says however this can only be edited by the file
All permissions below are prefixed with p2pvp. and are all lowercase.
Manage
Grants access to editing the config via the /pvpManage command.
Default: op
Edit
Allows editing of other players pvp status, players will be notified when this happens to them unless you havep2pvp.edit.invisible.
Default: op
Set
Lets players set their own PVP preference.
Default: true
评论 0
登录后参与评分
还没有评论,来抢沙发吧