PvP Shield

Features/Purpose: PvP Shield is a simple but configurable plugin that protects players from pvp related damage after the respawn for a set amount of time. Not only does this plugin stop the player from taking damage by players, it also stops the player from damaging others during the buff time.
This plugin also blocks commands specified in the configuration file while the player is protected.
How To Install:
- Download and move PvPShield.jar to your servers plugins folder.
- Restart or reload your server
- Go to your servers plugins/PvPShield and open config.yml and configure the plugin as you wish.
Configuring messages.yml:
- Use '&' symbol followed by color code to define color
- All messages should begin with a color code
- A list of color codes can be found HERE
Commands:
- /shield on - Turn shield on shield (admin)
- /shield on <player> - Turn shield on for another player (admin)
- /shield time - show the set protection time (admin)
- /shield time set <seconds> - Set time protection time (admin)
- /shield enable - Enable shields on respawn (admin)
- /shield disable - Disable shields on respawn (admin)
- /shield cancel - Cancel you current shield (default)
Permissions:
- shield.admin (gives access to all admin commands)
To Do:
- Option to enable shields only when player died in PvP
- Add support for potions
- Configurable messages
- Option to cancel shield if player moves
Known Bugs:
- Arrows shot a protected player sometimes damage shooter
- Shield does not work against poison effect
- Shield protects player from enderpearl damage (exploit) [/list]
Source Code:
You may modify this plugin in any way but you must provide credit to me if you distribute it.
GitHub: https://github.com/daawsomest/plugins
Donations: If you like this plugin and want to help me make more, please leave a small donation by clicking HEREto show your support.
-
View User Profile
-
Send Message
Posted May 4, 2014@walrusone
I don't mind you editing it, I would like to get around to updating it myself, but I don't have the time. If you would like you can send me an updated version and I will add a download link.
-
View User Profile
-
Send Message
Posted Apr 9, 2014@walrusone
I hope you don't mind, I edited your plugin to included enderpearl events. All I had to do was add the following code.
import org.bukkit.event.player.PlayerTeleportEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
@EventHandler public void onEnderpearl(PlayerTeleportEvent event) { if(event.getCause() == TeleportCause.ENDER_PEARL) { activateProtection(event.getPlayer()); } }
-
View User Profile
-
Send Message
Posted Apr 8, 2014Hey, your plugin looks good. I'm interested in something very similar to this, but I would like the shield to enable after enderpearl/teleport. Do you think this might be possible in the future?
When in PVP, I want there to be a shield when people enderpearl so that they can't hit someone right after they pearl.
-
View User Profile
-
Send Message
Posted Feb 9, 2014@daawsomest
Okay thank you.
Run down of current issues.
Feature Requests:
Thanks!
PS: Due to some of these bugs we have had to remove the plugin from our server until they are fixed. I look forward to an update as soon as you have time to do it. Thank you!
-
View User Profile
-
Send Message
Posted Feb 4, 2014@Mirrorsounds
Sorry i'm not really sure what you mean.
I will try to update the plugin asap to fix the enderpearl damage but it may take me a few days to a few weeks because I am currently very busy.
Thanks
-
View User Profile
-
Send Message
Posted Feb 1, 2014Also, the shield is protecting people from enderpearl damage which players have started exploiting lol.
-
View User Profile
-
Send Message
Posted Jan 30, 2014@daawsomest
Fail, sorry i didn't look sooner. By warmup I mean after you cast the command a configurable timer starts ticking down until the command happens. and if the player moves that timer is stopped and the shield is not cancelled.
-
View User Profile
-
Send Message
Posted Jan 20, 2014@Mirrorsounds
I will add that to my to do list.
Do you mean the if the player moves it gets canceled?
-
View User Profile
-
Send Message
Posted Jan 17, 2014Great plugin! A few requests: in addition to support for potions, we would love a a configurable warmup on /shield cancel which will cancel the command if there is any movement by the player.
EDIT: Found another issue. It gives shields on any death. We only want it for pvp related deaths.
Thanks!
LegendsMC