Configuration file to turn PvP on or off by default
Users can toggle their PvP status with the /pvp command
Additionally, users can use /pvp on and /pvp off if unsure if their PvP is on or not
Configurable cooldown between toggling your PvP status
Commands
/pvp - Toggle your PvP status /pvp on - Turn your PvP on if it isn’t already /pvp off - Turn your PvP off if it isn’t already
Permissions
pvptoggle.use - Use the /pvp, /pvp on and /pvp off commands pvptoggle.nocooldown - Bypass the cooldown when toggling your PvP status pvptoggle.bypass - Bypass the PvP protection altogether
Changelog
v1.2.0
Players with the pvptoggle.bypass can bypass the PvP protections of players
Players with the pvptoggle.nocooldown can bypass the cooldown when toggling their PvP status
Added /pvp on and /pvp off commands (saves you risking turning PvP on if you’re not sure and going on cooldown)
v1.1.0
Colourised chat messages
Added a clickable message to toggle PvP
Added a configurable cooldown to toggling your PvP status
Finished everything else I wanted to implement. Code is a little messy, but it should work just fine without any issues. If you do find any issues or have any requests feel free to reply and I’ll see get back to you quickly.
v1.2.0
Players with the pvptoggle.bypass can bypass PvP protections of players
Players with the pvptoggle.nocooldown can bypass the cooldown when toggling their PvP status
Added /pvp on and /pvp off commands (saves you risking turning PvP on if you’re not sure and going on cooldown)
For what reason? If you want to stop them PvPing in God mode, this would probably be better implemented by the plugin that provides this command. Otherwise, they would just be able to toggle PvP back on again.