CautionSigns
This was a Continued Plugin by @emericask8ur called "WarningSign"
Version 3.x.x
Have you ever wanted to protect an area and nothing does the trick? Well here is your solution! Placing a sign down and writing "[Caution]" on the top line will cause anyone within a customized block radius to be kill by a customizable event!
Features
1) Allows for custom strike radius.
2) Permissions Support.
3) Ops have full permission.
4) Not case sensitive.
5) Will not target mobs.
6) Customizable striking options
- Lightning (Strikes player with lightning)
- Explode (Kill player with an explosion)
- Ignite (Lights player on fire)
- Volley (Fires arrows apon the player)
- Golem (Spawns a hostile iron golem on the player)
- Wolves (Spawns hostile wolves on the player)
- LavaTrap (Encases the player in a bedrock/lava trap)
- WaterTrap (Encases the player in a bedrock/water trap)
- SkyDive (Teleports the player way up into the sky and drops them to the ground)
- Random (Picks a random strike to attack with)
Instructions
1) Write "[Caution]" on line one of the sign.
2) Enter a number that will be the strike radius on line two of the sign.
3) Type the type of strike you wish to use on this sign. (refer to features for list)
If done properly, the players name will appear on the last line of the sign and the player will receive a message of confirmation.
Permission Nodes
cautionsigns.* - Grants the ability to create, ignore, and destroy cautionsigns.
cautionsigns.create - Grants the ability to create the signs.
cautionsigns.ignore - Sign simply ignores the player entering the radius.
cautionsigns.destroy - Grants the ability to destroy created signs.
Todo
1) Make the radius customizable. [DONE]
2) Possibly make the sign do more than strike lightning. [DONE]
3) Make the creator of the sign ignored by the sign. [DONE]
4) Add a strike radius cap to the sign (caps between 1-25) [DONE]
5) Add custom messages when a player approaches a CautionSign.
6) Add a rule so that the sign cannot be created when another player is within the strike range.
Suggestions are always recommended.
Changelog
Version 1.0.0
- Release
Version 2.0.0
- Fixed compatibility issues.
- Cleaned up code a bit for faster speed.
Version 3.1.0
- Fixed all major and minor bugs known
- Added customizable radius input on line 2
Version 3.1.1
- Implemented new striking options (aka StrikePackage)
- Implemented sign ownership system (Can write owner name on bottom)
- Fixed some lesser coding issues
Known Issues
1) If you place a CautionSign on top of another CautionSign, only one event will register.
update this for 1.4.7 please
Please update for 1.6/1.7!!
I really like this idea and I am trying to get a willing victim to help me test it... :)
I would like to suggest that maybe having the ability to turn on or off, in the config file, the point of targeting mobs would be a good thing.
I am assisting in building a wasteland world. I think having a warning and even mobs being targetted would have a great psychological effect of how bad the situation is... hehe
I hope this might be useful.
We will be adding a config file to adjust to your needs such as:
-Max range
-Different Strike Packages Message upon (enter and leaving) sign range
-sign warning range
From the last release the code layout has changed by a lot. We were not doing it in organized way and next release will be cleaner.
@Anormalcat
Well Anromalcat
First) The strike radius of 25 was put in play for anti-abuse reasons. I recommend putting multiple signs up 25-50 blocks away. Note: If the radius crosses, its double the effect.
Second) As for the bug, we will work on adding a catch in the code to fix that.
Third) As for the custom warnings I think that would be a good idea. We will add it to the Todo list for plugin features.
Thanks :)
How to i alter the maximum radius?
I need a large area sanctioned off where people cant enter, And it keeps saying the max is 25
ALSO, BUG
If you accidentally don't put a range in, It spams the log with errors, And defaults it to lightning
For example if i acidentially typed
[Caution]
Lightning
25
And is is possible to have it display a custom warning? EX: ENTERING RESTRICTED AREA, GUARD DOGS DEPLOYED
@James_Edington
I actually like a couple of these ideas. Ill see about adding a few in future updates. Thanks :)
I have some ideas: "normal" players will be able to make a lightning sign by putting it on a diamond block. The radius will have a limit, and all users listed on the sign (or other signs on the block that have the [more users] tag) will be exempt from lightning from that sign. There will also be a strict 1-lightning-sign-per-normal-user limit. If another one is created, it will either not work or work but break the old one (customizable in the config file). There will also be an optional cooldown for normal players placing signs, and perhaps a rule that you can't place them if an electrocutable player is in range. I hope you enjoyed my suggestions! (And I also hope you use some of them! ;) )
@jan9f
Sorry for the very delayed reply, college has been eating any and all free time of mine. The answer to your question is yes. You can place the sign underneath blocks. Just make sure you make the radius big enough so that when a player walks over the sign, the event is triggered.
A question, does this work if you put the sign underneath a block? (I don't want the signs to be visible)
@jan9f
That was what I was actually planning on doing. Making the second line work as the radius. Thanks for the re-assurance :)
Like on you todo list, please make the radius custom. Maybe: [Caution] [your radius here] Just a thought
@micdoodle8
Thats what I get for doing all this at 2 in the morning lol :)
Lightning not Lightening :)