Glacy PvP

Glacy PvP

What is it?

Glacy PvP is a plugin aimed for servers that have a playerbase where some players only want to PvP and other players that only want to build without any PvP. The whole concept behind this plugin is that players can't abuse it (for example by toggling PvP off if they see someone coming to kill them) which is an issue with most PvP plugins. You can customize this plugin to fit your needs, from changing whether players have PvP on or off when they first join to changing the colors the plugin messages are sent in. All player data gets stored in the config.yml.

Note

If anyone would like to help in any way with this plugin, be it testing, making images, etc, feel free to send me a pm.

New player

When a new player joins, the plugin looks in the config to see the values of "defaultPvpOn", "defaultPvpMessages", and "defaultTogglesLeft" and it adds them under their username in the config. The player also receives a message informing them about it.

What gets disabled if a player has PvP off?

  • Punches from other player
  • Splash potions from other players
  • Arrows shot by other players
  • Eggs shot by other players
  • Snowballs shot by other players
  • Enderpearls shot by other players
  • Fishing rods shot by other players

Notice the common theme: other players, this means if you do any of the actions listed above towards yourself with PvP disabled, you will still get hurt, this is to prevent abuse.

Detailed Explanation

The main idea that this plugin runs around is that each player has a limited amount of toggles (default is 1) (Players with the right permissions can change any player's toggle points), these toggles get used up when the player decides to change his/her PvP state to on or off. Once the player has changed his/her PvP state, he/she cannot be damaged by other players, however, players can't abuse having their PvP off as if they manage to do one of the actions listed above towards themselves, they will still be damaged. Each time a player hits someone who has PvP disabled (or if the hitter has PvP disabled), he/she will get a message as long as they have PvP messages enabled (see below for explanation).

Default Config

updateChecker: true
prefix: '&4[PvP]'
prefixEnabled: true
msgColor: '&8'
valueColor: '&c'
defaultPvpOn: true
defaultPvpMessages: true
defaultTogglesLeft: 1
disablePvp: false
  • updateChecker = If true, you will be informed on server startup if a new version is available.
  • prefix = The prefix that will show (if enabled) in front of most PvP messages.
  • prefixEnabled = If false, the prefix will not show up on any PvP messages.
  • msgColor = The main color of the PvP messages.
  • valueColor = The color of text that have a changeable value.
  • defaultPvpOn = If true, new players who join will have PvP enabled by default.
  • defaultPvpMessages = If true, new players who join will have their PvP messages enabled by default.
  • defaultTogglesLeft = The amount of PvP toggles a new player gets upon joining.
  • disablePvp = Whether or not you want to globally disable PvP. Great to have on when doing a big server event.

Features

  • Individual player PvP toggling.
  • Limited amount of toggles per player.
  • Ability to customize the config from in-game.
  • Ability to customize the look and feel of the plugin.
    • Prefix, color of main plugin messages, color of changeable values.
  • Ability to globally disable PvP.
  • With the right permissions; ability to change a player's toggles from in-game.

Commands

CommandDescriptionPermission
/pvp helpDisplay help for the pluginnone (It only shows you the features you have access to)
/pvpIf no arguments are entered, it will ask you for confirmation whether or not you want to toggle your PvP status.none
/pvp m/msgToggles showing PvP messagesnone
/pvp s/statusShows your current PvP statusnone
/pvp changepoints <player> <number>Changes toggle points for selected playerpvp.changepoints
/pvp changepoints all <number>Changes toggle points for all players that have ever joinedpvp.changepoints
/pvp config (configurable option) (value)PvP Config command, if nothing is entered, a list of configurable options will be shownpvp.config
/pvp r/rl/reloadReloads the configpvp.reload

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files