PvPToggle icon

PvPToggle -----

Allow players to change their PvP Status to reflect whether or not they want to fight other players.



What is PvPToggle?
PvPToggle is a plugin that allows players to use a simple command (/pvp) to change their "PvP status." When a player has PvP toggled off they won't be able to take damage from other players or deal any damage to other players. Damage from mobs, explosions, lava, etc. will not be affected by your PvP status.

Features:
  • Small, efficient plugin
  • Blocks all forms of damage
  • Customizable messages
  • WorldGuard support
  • Citizens support
  • GriefPrevention support
  • Lands support
  • Admin commands
  • Works in most MC versions
  • Data saves on restart
Commands:
  • /pvp <on|off> - Change your pvp status.
  • /allpvp <on|off> - Change the pvp status of everyone, requires permission pvptoggle.allpvp
  • /blockpvp <true|false> - Change whether or not players are blocked from toggling their pvp status, requires permission pvptoggle.blockpvp
How to use:

Place the downloaded jar in your plugins folder and restart your server. The config.yml will now be generated so you can configure the plugin to your liking.​
Code (YAML):
[/SIZE ]
# PvPToggle by Majekdor | Need help? Join https://discord.majek.dev

# Set whether pvp is on by default (default: false)
default-pvp
: false

# Set whether pvp is automatically set to false on join
off-on-join
: false

# If true, only players with permission pvptoggle.use can use /pvp (default: false)
use-permissions
: false

# Set a cooldown for the time between players using /pvp
# Default: -1 (no cooldown) put number in seconds if you change this
pvp-cooldown
: -1

# Set the worlds where PvP Toggle is disabled
# Below is an example. Uncomment the line and add the world name to disable
disabled-worlds
:
 - "world name goes here"

# If set to true then PvP will be forced on for users in a WorldGuard region where PvP is set to allow
# Otherwise PvPToggle will let them do what they want
force-pvp-in-region-allow
: false

# Whether players should be notified of a region's pvp status (whether they can pvp there) when they enter
region-notify
: true

# Set whether changes in PvP status are logged to console (default: false)
console-log
: false

# Don't set to true unless you want players to see random messages or other undesirable behavior
debug
: false

# These are used for PAPI boolean values
boolean-true
: 'true'
boolean-false
: 'false'

# Database settings for MySQL support
# Only enable this if you know what you're doing and have an existing database
# If database is disabled the plugin will use SQLite for data storage
database-enabled
: false
host
: ''
port
: ''
database
: ''
username
: ''
password
: ''
use-ssl
: false

# =========================
# | MESSAGE CONFIGURATION |
# =========================
# Feel free to use any mc color code
# %player% is replaced with the relevant player name
# If %player% isn't in a message, don't put it there. It won't work

pvp-enabled
: '&6PvP is now : &aEnabled'
pvp-disabled
: '&6PvP is now : &cDisabled'
no-pvp
: '&6PvP is disabled. Use &7/pvp &6to turn it on.'
other-pvp
: '&b %player% &6has PvP disabled!'
unknown-player
: '&cUnable to locate player %player%.'
no-permission
: '&cYou do not have permission to do that!'
on-cooldown
: '&cYou may use this command again in %cooldown%.'
plugin-reloaded
: '&6PvPToggle reloaded.'

# The below messages use the strings at the bottom of this file

# %toggle% will be replaced with either on or off
# %player% will be replaced with the player who's pvp has been toggled
pvp-toggle-other
: '&6PvP is now %toggle% for &b%player%&6.'
pvp-toggle-all
: '&6PvP is now %toggle% for everyone.'
pvp-block-set
: '&6Global PvP blocking is now set to %toggle%.'
pvp-blocked
: '&6Toggling PvP is blocked.'

# %noun% will be replaced with either you-are or player-is
disabled-world
: '&c %noun% in a world where this command is disabled.'

# %toggle% is either on or off
region-deny
: '&c %noun% in a region with PvP forced %toggle%.'

# %toggle% is either on or off
region-enter
: '&cYou have entered a region where PvP is forced %toggle%.'

# %toggle% is either on or off
your-pvp
: '&6Your PvP is currently %toggle%. Use /pvp <on|off> to change it.'

# Strings for placeholders in above messages
forced-on
: 'on'
forced-off
: 'off'
you-are
: 'You are'
player-is
: ' %player% is'
[SIZE=4 ]
Need help or have a suggestion?
Sometimes plugins have bugs D: and I'm always looking for suggestions on how to improve my plugins! Discord is the best way to reach me for either. Click the image below to get started.
[​IMG]
Message me through discord, spigot, or on the discussion page and I'll try to get back to you as soon as possible!

*Please do not post bug reports or issues as a review! The best way to report an error is thru my Discord linked above*
Resource Information
Author:
----------
Total Downloads: 4,106
First Release: Jun 22, 2020
Last Update: Jan 7, 2022
Category: ---------------
All-Time Rating:
8 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings