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
I really don't understand it, but when ever a normal player with the permission node, "cc.pvp" tries to hit anyone, it says the following: "You can't fight someone while you're protected from PvP." When I have an op with all node, "*" they are able to attack other players. I looked and looked but found no solution. I'm hoping anyone can help me resolve this. It will be greatly appreciated. Thanks
Best Regards, KTMRipper
@Chinwe
Sorry for being unclear. You are correct, I would like 2 nodes, one that allows pvp, and one that prevents pvp.
For example, my moderators have 2 play modes, one where they can play as a player, and one where they are restricted to helping players. When in Moderator mode, I would like to prevent all forms of pvp and damage to them, so there are no accusations of abusing their "power" etc. When in player mode they would have pvp enabled so they can participate in battles etc.
1.3 has been released with multiworld support!
Been looking for a plugin exactly like this and finally found it! Keep up the great work!
Please add multi world support and the ability to allow PVP in specific worlds regardless if a player has enabled it. I have a hunger games map, but it won't work because everyone is invincible because they do /pvp when they join, lol.
Thank you so much for making this plugin :)
Im afraid I will be away for a week, hopefully I can add multiworld during that time but if not, it will be added when I come back :>
When this will be multiworld, when is next update i really need it :(
@Mr_Wired
By takes a few minutes to get out of it, do you mean a cooldown that doesn't allow you to disable pvp until a few minutes later? There is a current cooldown of 1 second that I will make configurable in the config for the next update. As to hooking into PVPPack, I'll take a look at it but can't make any promises :3
Could you make this work with the PVPPack plugin? Also, if it's not added on your plugin, could you make it so once your in PvP, it takes a few minutes to get out of it? And if you attack again,(If your connected with PvPPack) then you'll re-enter PvP and the counter will reset back to however many minutes you have set. :D
P.S Trying to make an MMO-style minecraft server lol
@moisesortiz
I still have to add in multiworld support, Ill try put that in the next version.
@Nitratox
Are you sure you don't have pvp defaulted to on?
@rotiripsnoc
I don't think I understand you, do you mean a permission where you can't pvp? Or am I just being stupid :3
I Have two worlds, a faction and a normal world how can I do this only works on the normal world and not in the faction world
on my server there are certain users who apply / pvp off (at this stage no one else can attack) but to attack someone, it activates, it will steal user (victim) and go.
Waiting time I think it is working properly. Please rechekearlo.
Very nice plugin. Greetings.
Personally I would like to see a permission node that prevents pvp for those given permission.
@diannetea
Do you mean hitting someone when your PvP is off turns yours on? If you do, it would mean that that player could always get the first hit in a fight, because he can only be damaged after he has damaged the other player first. Can you can think of a way to stop this?
If it wasn't what you meant: what did you mean? :3
is it possible to auto flag someone if they try to attack another?
@akiraic
I believe you would have to recompile the plugin with the edited .java files, but for the next version I will be happy to supply a messages.yml where you can edit all the strings easily.
And also a default login pvp state option too :>
So.. i want to translate the text warns that appears to the players. Even if i modify the text in CombatControl.java, that keep showing the english messages. Any help?
Tip: add a "first time login pvp state: on/off" feature. Would be great.
@merlinshaw
Added potion support in v1.1 :D
I have a subjection would like to see some kind of prevention to prevent potion damage when pvp is off and mcmmo bonus attacks as well.
PVPToggle broke on 1.5.2 and appears abandoned. We're running maybe 50 plugins and CombatControl is working well for us, thanks!!!