Shielder
Description:
Do you own a PVP server? Are you tired of spawn killers? Then this is the plugin for you! Shielder is a lightweight plugin which turns new players invulnerable to PVP (you can also configure if they are invincible to mobs, see the Configuration section) for 30 minutes by default when they first join your server! However, if they attack another player before the 30 minutes are up, they will lose invulnerability (same with mobs, unless you state otherwise). It also announces to everyone on the server when somebody is invulnerable or is no longer invulnerable.
Features:
- Makes new players invulnerable to PVP and/or mobs for a configurable amount of time
- Stops spawn killing!
- Announces when a player is and isn't invulnerable. (Configurable)
- Shielded players cannot attack other players! (Configurable)
Commands:
Group | Command | Description |
---|---|---|
Admin | /s or /shielder | Main command for the plugin. |
Admin | /s time <number> | Set the time in minutes on how long a player has the shield. If no time is provided it will show how much it is currently. |
Admin | /s loseshield or /s l | Toggles between true and false, the loss of shield on attack a player/mob. |
Admin | /s broadcast or /s b | Toggles between true and false, the broadcast of when a player loses the shield. |
Admin | /s mob or /s m | Toggles between true and false, if a player should have mob protection. |
Admin | /s pickup or /s p | Toggles between true and false, if shielded players can pickup items or not. |
Group | Permission | Description |
---|---|---|
Admin | s.admin | Permission to change the settings of the plugin. |
Configuration:
Configuration is very straightforward. Simply copy the Shielder.jar into your plugin directory. Stop and Start the server. It will then make a folder in your plugin directory named "Shielder" double click the folder. 'config.yml' is where you can edit how long the player is invincible and if they can be damaged by mobs. If you want to change how long the player is invincible for, change "30" on "time limit: 30" to whatever you want (it has to be in minutes) default, it's 30 minutes. If "mob protection" is set to true, the shielded player will not be damaged by mobs, if it's set to false the shielded player will be damaged by mobs. And finally, if "remain shield" is set to false the shielded player will lose mob protection if the player damages a mob and if it's set to true the player won't be able to attack mobs at all. From version 1.3 onwards you can now enable/disable if broadcasts are shown when a player is made invincible or when the player loses invincibility. Default, this is set to true (enabled). That's it for the default configuration settings! If you have any questions please feel free to leave a comment.
To Do:
- Open for suggestions!
Thanks to:
Vandrake, without him, I'd still be stuck on getting the timer right :P
@gidon010
Yes it's possible and easy but, my computer is currently not able to code so I can't really develop plugins for a while. Try to message the other developer, I should be back to coding soonish. January or so. Peace
How about you make somekind of admin command that can make player invincible.. (Like /s invincible <playername>)
and
Can you make World invincible? like if i teleport the world, it automatic make player invincible.., Sorry for Bad English
Thanks!
Dude thanks so much. I am using this for survival games on my server. thanks so much :)
make it so you can disable it in certain worlds?
suggestion2: I am looking for a plugin to give the first join of players a book to read the servers informations.
suggestion: make config nopickup default to false.
@predawnia
This is done in the new 1.4 version
@predawnia I think it's possible with picking up items. I'll do some research ;)
Is it possible to make it so that if the person is under PVP protection he/she cannot pick up items or open chests?
Okay, version 1.3 is up for download. Please update to this jar, as it contains a few bug fixes and a new configuration variable!
NOTICE!
Please do not download until Shielder version 1.3 has been approved. Thank you.
@DerekZil We've fixed the bug. And are currently implementing your idea into the code. Once we've done that we will upload a update with the fix and your suggestion in it.
@DerekZil Okay, we are debugging the plugin and trying to see what's wrong with the timer.
We'll also see if we can get a config to turn the broadcasts on and off.
It says players have 36000 minutes of protection, can you please fix that to only 30 lol... :P
Edit: Can you add a config for the messages too, we have a ton of players on our server, it spams chat when new players join and when their protection wore off.
@Vanndrake Yeah
@Musicsguy
But he should report the errors anyway xP If it's not much of a trouble :3 we need to make sure no errors pass
@Lord_Majh Thanks for the comment! There is a new jar that is awaiting approval, if you find any bugs they might be fixed when that jar gets approved.
Nice and simple. I'll test it out on my server and report any issues.