CombatControl
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
@Chinwe
Is it done?
A total rewrite for 1.7.2 is almost complete :>
When I write /pvp it is writing error(but /pvpa is working) bukkit 1.7.2
@Chinwe
In the 1.7 update could you add a feature that when players first join the server they automatically have a 60 minute grace period(time changeable in config)
WorldGuard support, also when people die with keep items, if they leave instead of respawn, they loose items.
@Felina_Lain
I'll be fixing that for the 1.7 update, and maybe adding a command solely for command blocks :)
The plugin keep telling me my config is out of date. I've deleted and used /pvpadmin reload Five time. And it keep telling me it's out of date...
That's getting annoying a bit...
Also: command block pvp is a good idea ^^
PvP pressure plates to force PvP unto a player, at a PvP arena entrance for example.
Commandblock maybe?
Congratulations, 666 downloads lol
Dont work ... do /pvp on and off works fine .. but ppl can still attack ppl that have pvp off
@LEOcab
Are you sure the cooldown times are not 0 in the config.yml?
@Pokachu105
There is no WorldGuard support just yet, though I'm working on it :>
Slight problem: cool downs don't seem to be working. I tried /pvp'ing myself several times (while deopped of course) and it just enabled and disabled without complaining about cooldowns. I thought it was just a bug with /pvp but players have reported being able to disable it during a fight. Is anyone else suffering from this?
I have a no-pvp worldguard region but the plugin is ignoring the no-pvp flag, I don't want players to get spawncamped. How can I fix it? :P
With worldguard I have a no-pvp region, but the plugin seems to be ignoring the pvp denied flag. Can you fix it? :P
Small exploit when using mcmmo:
Even if both players have pvp disabled, a player can attack another with a sword on a server that also has mcmmo, causing the attacked player to eventually have the bleeding effect put on them. I hope this can be fixed! :D
@paulj1x
"at net.chunk64.chinwe.CombatControl.utils.Utils.processMessage(Utils.java:39)" Look in the solutions to common problems: delete and reload to recreate your messages.yml :>
My log is getting spammed with CombatControl Severe errors: Could not pass event PlayerJoinEvent to CombatControl v1.3 http://pastebin.com/12nLdecc Craftbukkit Spigot-902 (MC: 1.5.2)
@KTMRipper
Do your 2 moderator playmodes have different permissions? If they do, the moderating gamemode should have cc.preventPvp, and the other should not, or even -cc.preventPvp (when the update is released). Unfortunately at the moment, this plugin overrides PvP for other plugins - eg. even if you're in a worldguard PvP region, you cannot fight unless you have /pvp enabled, though Im working on this issue :>
EDIT: Wait, could you not just give them -cc.pvp so they cannot enable PvP in the first place?
@Chinwe
So how could I make it so they could fight? Because everywhere in my files, I have PvP enabled and it wasn't until I got this plugin it started showing that message.
@KTMRipper
The permission node cc.pvp is only for the command /pvp, it doesn't affect whether or not someone can fight. There is currently not a permission node that prevents someone from attacking, however I could add a node such as cc.preventPvp that does exactly that. It will probably be included in a v1.3.1 update that will most likely come in the next few days :>