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!
Hi, ive been having a problem with permissions. Only i am able to toggle pvp on or off (im the only admin and the only one who is OP). I think the problem is the plugin essentials that ive also got running, but i cant seem to find it. Anyone know what im doing wrong?
The colors part of the config is not changing anything. Or really anything with the config. It still makes people's pvp on by default.
Hey all! So for version 2.0, I'm going to be doing a complete recode to allow for better support in the future, as well as an API for anyone who may want such a thing. No ETA on this yet, as I have some other projects to do at the moment.
@flawlessbraz1
What do you mean? Can you explain a bit?
Can you tell me how to get rid of the colored names after I removed the plugin from my server? I was testing with it and I noticed this issue...
kinda glitch at times in the nether
Looks great, going to be using this on my server!
It would be nice to have an alias of /pvp to the /pvptoggle command and maybe have the options to do /pvp off and /pvp on, it's just easier especially for users who are used to using the old plugin PvPToggle.
One of the reasons I like this plugin more than the old one is that it stores the state of a player's pvp so they don't have to keep turning it off or on whenever they join the server, and might forget to do so.
Also it would be nice to be able to edit the messages output when pvp is toggled in the config.
@godgodgodgo
Will do :)
Could you add a config to disable the message that appears when a player logs in? Thanks
@fauxiss
Ok I'll definitely look into that issue :) As per multiple requests for such a feature, I'll definitely add the ability to add disabled worlds. Stay tuned for a future update :)
I am having some trouble getting the custom display names to work correctly. Currently, when PVP is enabled for a player, their name is GREEN and when it is disabled, it is RED. What I want it to be is WHITE when enabled and GREEN when disabled. Below is a copy of my configuration file. I have done multiple server restarts but changing this file does not seem to do any good. I am running Spigot 1.7.9-R0.3 with version 1.5 of the plugin.
http://pastebin.com/EN9t031G
Otherwise the plugin seems to work brilliantly. Perhaps you could add a disabled worlds config option instead of having to disable the permissions in specified worlds.
@Butterblender
Strange. Any way you can show me proof of this?
My players can pvp no matter if their pvp mode is on or off. Please fix!
@Nentify
Yes it does :)
Does this work on 1.6.4?
@Perturbee
I still plan on including that feature in a future update, so one does not have to rely on outside plugins :)
@TotallyNotADev
It works for me with Groupmanager and group permission files per world.
I disallowed pvptoggle.player.use in worlds I don't want players to use it.
I allowed it in the world they can PvP.
Works like a charm on my test server (CB 1.7.9-R0.2-Build 3086). Where it's disallowed they get: "[PvPControl] You do not have permission to use that command!"
@TotallyNotADev
Not a bad idea. I already pushed out an update, which is currently awaiting approval, but I will definitely include that in the next update :)
Make it so you can disable PvP in certain worlds (block the command)