PvPControl
PvPControl
A simple, lightweight plugin that allows players to control whether or not they are allowed to PvP.
Features
- With one simple command, players can choose to enable or disable their ability to PvP
- Configurable cooldown for how often a player can toggle PvP on and off
- If a player has PvP disabled, they cannot take damage from or deal damage to other players
- Players with PvP enabled cannot deal damage to those with PvP disabled
- Admins can override a player's PvP state
- Control if players have PvP enabled/disabled by default when they join the server
- Depending on the player's PvP state, the name above their head changes colors, green if enabled and red if disabled
Commands & Permissions
- /pvptoggle | Main command to toggle PvP. If PvP is enabled, this will disable it and vise-versa | Permission: pvptoggle.player.use
- /pvpadmin <player> | The admin command to toggle any player's PvP state | Permission: pvptoggle.admin.use
Setup
Installation
- Download Plugin -> Drag and Drop into your Plugins Folder -> Configure to your liking -> Done!
Updating
- This plugin has a built-in update checker. You can toggle update checking on and off via the config file.
Here's an example configuration file:
#------------[PvP Control]------------# # Original concept by Bukkit Forums User Generalaloki # # Contact Info # # YouTube: www.youtube.com/TheGamingGrunts # # Bukkit Forums: http://forums.bukkit.org/members/the-gaming-grunts.90861788/ # # Our server: play.project-x.me # #------------------------------------# # Control the delay (in seconds) for how often a player can toggle PvP Toggle Delay: 180 # Control whether pvp is enabled/disabled by default when a player joins PvP Enabled: true # Control if the name above a player's head should change color Do Color Change: true # Color for the player's name if PVP is enabled Enabled Color: '&c' # Color for the player's name if PVP is disabled Disabled Color: '&a' # Control whether or not the plugin should check Bukkit Dev for new versions # If set to true, the plugin will check for updates Update Check: true
To-Do
- Add multi-language support via a messages.yml file (In progress)
- Add a configuration option to enable or disable changing player nametag colors (In progress)
- Anything the community wants. Want something added? Tell me!
Plugin works as intended for me, obviously may be a couple bugs but this an old plugin.
Love this plugin, however when you disable PvP my players can still do damage with bows, snowballs, etc.
Good plugin,I deleted the plugin and color of the users on the list are not removed by that?
Sorry my english :S
@QueueAmI
Yes Please Have WorldGuard Support!
WorldGuard support, or some sort of region control would be awesome. I want to be able to have a region that forces PvP on.
@Bronzeteufel
I have this too. Players all start with PVP on, while I wanted the opposite.
EDIT: In the source code, you have this:
So the configuration item doesn't seem to be taken into account and the default is hardcoded to true. Can you fix this?
update to 1.8 pls.
Awesome plugin! Just a bit of an issue though. When activating the plugin, there's an error that prevents the plugin from working: java.lang.IllegalArgumentException: Team name 'enabled' is already in use Every time the server is restarted, this error occurs and I have to manually delete the disabled and enabled teams to load the plugin. Is there a workaround? Thanks.
Could we have the option to disable the colours for players?
Could you add a direct admin command that enables / disables players pvp? eg. /pvpadmin enable <player> and /pvpadmin disable <player>
Thanks!
Hello, I want a PVP plugin that controls PVP in a specific area
@Bronzeteufel
@drew5494
@QQuMADbrah
I plan on doing a full recode when I go home for winter break. At the moment, school is taking up all of my free time and I just haven't had the time to work on fixing anything.
EDIT: Also, if you guys can provide screenshots and/or a video so I can see what exactly is going on, that'd be great and make my life a little easier :)
I set PvP Enabled: false, but for some reasons PvP is enabled for players when they join ?
The coloured name tags don't work either.
Hi there can you please add an option to disable the message on join "You have PvP set to true/false."
Found something weird... For some reason one day the colours (green only actually) stopped working and was replaced with white. Also, most hostile mobs (I say most because it only deals with melee) cannot hurt players when pvp is toggled to false. As well when pvp is on false the players cannot eat, build, destroy, ect. This is weird. Any thoughts?
One last thing; I have currently removed it to protect players who want to build until I can get my first problemo fixed. Names are still changed and Im wondering how I would be able to revert them?
Thank you very much!
@MDoyle
I'll look into this :)
@drew5494
This should work fine with the latest versions. No need to update at this time.
Please update
Nice plugin
May i request you add in the ability for the host to put a timed delay in the toggle? As I've admined on servers before where people abuse the fact the change is instant to toggle it to avoid a fight they'd lose when in a raid or such.
Something simple where when someone enters it it'll say "PvP switching in" (time period) as a 5-10 second delay set by the host could eliminate this issue, which otherwise, provides a cheap way to cheat a fight.