Hello! Today i will be giving out my custom Pvp Protection plugin.
The plugin is fully configurable.
Images links if they don't show
http://prntscr.com/bj4pwi
http://prntscr.com/bj4nqy
http://prntscr.com/bj4obc
http://prntscr.com/bj4oxz
Commands:
/pvp enable - removes your pvp protection
/pvp time - shows how much pvp protection you have left
/pvp give <player> - gives a player default pvp protection (permission: protection.admin)
/pvp remove <player> - removes a players pvp protection (permission: protection.admin)
This plugin depends on WorldGuard and WorldEdit so it can pause your timer in regions with pvp disabled.
This plugin has been compiled with spigot 1.8.8 and has been tested working with 1.7 and 1.8
Download link: It is now a resource on here http://www.mc-market.org/resources/1611/
The plugin is fully configurable.
Code:
Settings:
DefaultTime: 30 #Time in mins
PickUpItems: false
DropItems: true
LoseHunger: true
AddProtectionOnRespawn: true
IntervalMessages: true
IntervalTime: 5 #Messages will be sent every 5 mins to the player
Scoreboard:
Enabled: true
Title: '&7&lScoreboard Title'
Objective: '&9&lProtection: &7%time%'
Messages:
TimerPaused: '&eYour protection has been paused'
TimerUnPaused: '&eYour protection is no longer paused'
AttackPlayer: '&cYou are currently protected. use /pvp enable to remove protection'
AttackProtectedPlayer: '&cThis player is currently protected'
TimeLeft: '&cYou currently have %mins% minutes and %secs% seconds left'
NoTimeLeft: '&cYou do not have protection!'
EnabledProtection: '&cYou have disabled your protection!'
IntervalMessage: '&cYou currently have %mins% minutes and %secs% seconds left' #Will only be sent if IntervalMessages is True
AdminRemovedProtection: '&cYou removed %player%''s protection'
AdminGiveprotection: '&aYou have give %player% protection'
PickUpItemsMessage: '&cYou cannot pickup items while protected!'
DropItemsMessage: '&cYou cannot drop items while you are protected!'
PlayerHelp:
- '&c/pvp enable - removes your protection'
- '&c/pvp time - shows time remaining on your protection'
AdminHelp:
- '&c/pvp enable - removes your protection'
- '&c/pvp time - shows time remaining on your protection'
- '&c pvp remove <player> - removes a players protection'
- '&c/pvp give <player> - gives a player the player default pvp protection'
Images links if they don't show
http://prntscr.com/bj4pwi
http://prntscr.com/bj4nqy
http://prntscr.com/bj4obc
http://prntscr.com/bj4oxz
Commands:
/pvp enable - removes your pvp protection
/pvp time - shows how much pvp protection you have left
/pvp give <player> - gives a player default pvp protection (permission: protection.admin)
/pvp remove <player> - removes a players pvp protection (permission: protection.admin)
This plugin depends on WorldGuard and WorldEdit so it can pause your timer in regions with pvp disabled.
This plugin has been compiled with spigot 1.8.8 and has been tested working with 1.7 and 1.8
Download link: It is now a resource on here http://www.mc-market.org/resources/1611/
Last edited:
