Description
Take control of combat on your server! Allow players to toggle individual PvP, lock them to prevent them toggling PvP, with more to come!
Commands
| Command | Description | Permission | Aliases | Example |
|---|---|---|---|---|
| /pvp | Toggle your own individual PvP | cc.pvp | /pvptoggle OR /cc | - |
| /pvpadmin | View PvP admin help menu | cc.pvpadmin | /pvpa OR /cca | - |
Admin Commands
| Command | Description | Permission | Example |
|---|---|---|---|
| /pvpa list | List all players who have personal PvP enabled | Defaults with cc.pvpadmin | - |
| /pvpa check | Check if a specific player has PvP enabled | Defaults with cc.pvpadmin | - |
| /pvpa set [player / *] [true / false] | Set a player's PvP state | cc.pvpadmin.set | /pvpadmin set Chinwe true |
| /pvpa lock [player / *] <s> | Prevent a player from changing their PvP state - optionally silent | cc.pvpadmin.lock | /pvpadmin lock Chinwe s |
| /pvpa reload | Reloads the config | cc.pvpadmin.reload | - |
| /pvpa worlds | View world commands help | cc.pvpadmin.worlds | - |
Multiworld Support
Multiple worlds are now supported! You will find that worlds.yml will generate in your CombatControl directory. In this, you can find the three lists - noToggleWorlds, enabledWorlds and disabledWorlds.
noToggleWorlds: worlds where players without permission 'cc.noToggleExempt' cannot toggle PVP.
enabledWorlds: worlds where PVP is forced upon those who do not have permission 'cc.forceExempt'.
disabledWorlds: worlds where PVP is disabled for those who do not have permission 'cc.forceExempt'.
Please make sure that you do not put the same world in both enabledWorlds and disabledWorlds - you cannot do this via commands but you can by editing the file manually. If there is a world in both, a message will be logged to the console, as well as notifying players with the permission node cc.pvpadmin.worlds.
Use the following commands to manipulate these lists from ingame, although you can also do so by editing worlds.yml manually.
| /pvpadmin worlds ... | Description | Permission | Example |
|---|---|---|---|
| ...add [worldname] [0 / 1 / 2] | Add a world to worlds.yml | cc.pvpadmin.worlds.add | /pvpa worlds add world_nether 1 |
| ...remove [worldname] [0 / 1] | Remove a world from worlds/yml | cc.pvpadmin.worlds.remove | /pvpa worlds remove world_nether 1 |
| ...list | List all worlds in worlds.yml | cc.pvpadmin.worlds.list | - |
| ...check | Check the status of your current world! | cc.pvpadmin.worlds.check | - |
Extra permissions
cc.updateAlert
Alerts a player on a reload if there is an update available.
cc.pvpadmin.set.*
Allows a player to set the PvP state of every player on the server.
cc.pvpadmin.lock.*
Allows a player to lock/unlock all players on the server.
cc.forceExempt
Prevents a player's PvP state from being changed when travelling to a world with PvP enabled/disabled.
cc.noToggleExempt
Allows a player to use /pvp, even if they are in a world listed in noToggleWorlds.
Configuration
The config is now long enough to be granted its own page!
Todo
Remember that this is beta at the moment! There are many features to come!
Change player tag colour when PvP is enabledPrevent players dropping items when killed (toggleable in config)Set default PvP mode in config (all players have PvP enabled by default)Give option to kill on PvP logAllow server owners to easily edit and/or translate the messages sent to playersMultiworld support- PvP pressure plates to force PvP unto a player, at a PvP arena entrance for example.
- Got a suggestion? Post it in the comments!
Solutions to Common Problems
- Make sure PvP is enabled in your server.properties
- Make sure PvP is enabled in your world if using Multiverse (/mv modify set pvp true)
- Currently, CombatControl overrides other plugins attempting to enable PvP - players must have /pvp enabled in order to be able to fight
- Getting NullPointerExceptions at net.chunk64.chinwe.CombatControl.utils.Utils.processMessage(Utils.java:
)? Delete your messages.yml and /pvpadmin reload.
MCStats!
You can opt-out of anonymous statistics collection by editing the file found in plugins/PluginMetrics/
Want to see it in action?
Come and try it out at Chunk64

