CreeperNotify
Description
Originally made this in about 5 minutes for a friend of mine who plays with no sound and kept destroying the world because he had no idea creepers were about to blow up near him. The idea has expanded slightly since then.
It sends the user a chat notification saying [Creeper Alert] if they are being targeted by a creeper. It also does some other wacky stuff if you're into that sort of thing.
Permissions
CreeperNotify.notify or OP (can also use none at all in the config)
Configuration
CreeperNotify Configuration: Use Permissions: true //If set to false, everyone gets notifications. Require creeper radar tool for notifications: false //If set to true, only players with the tool will get notifications Creeper radar tool ID: 345 //The radar tool (if enabled. recommend compass) Play sound on notification: true //Play an attention-grabbing sound when a creeper notification is sent. If player has a compass, track the creeper location with it: true //Makes the compass actually work like radar Endermen jam the creeper radar: false //This is a beta feature that needs more testing. Use at your own risk.
Source
https://github.com/proxa/CreeperNotify
Version History
v0.0.8 Beta
- 2 years later I have fixed the spamming issue :)
v0.0.7 Beta
- Added option to play a sound when creeper notify goes off. Definitely gets my attention!
- Attempted fix for potential NPE error
@JohOply
Sure, I could add something like that.
@chrishillz
Sorry, been gone for a while now. Will test this and see if I can reproduce any kind of crash.
Hello!
It's possible to change the sentence of alert ? If not, can you add this in config file please ? :)
Any idea why this plugin is way larger than WorldGuard?
Edit: Wait It might have been an old version, but does this work in 1.4?
Edit2: It randomly crashes us when I hit a creeper in creative with a diamondpickaxe. I think it would crash in other situations as well. Using the Beta bukkit build.
@chrishillz
It plays a sound client side. It's possible.
@SeeD419
How can a plugin enable or disable a sound that's client side? Do you mean it talks to you some how lol?
@chrishillz
I intend to, yes
@m9731526
Player alerts? I can look into it.
uh...
Yes, player, that will be helpful in a pvp or paintball server.
maybe you can set a config file to toggle types to notify?
Haha nice, I should add this as a donor feature to my server lolz. Are you planning to keep this going for a while? It seems like it could be quite useful. :D
Awesome! This will surely help out my players in Survival, haha.
Updated, now with a sound option. hehehehe
@matekso
Oh dear, looks like I need to update this...
Gives me this exception:
[WARNING] Task of 'CreeperNotify' generated an exception 12:01:47
java.lang.NullPointerException
at org.bukkit.craftbukkit.entity.CraftPlayer.setCompassTarget(CraftPlayer.java:222)
at org.hopto.seed419.listeners.CreeperPowerupListener$1.run(CreeperPowerupListener.java:63)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Can any1 help, please? :)
@m9731526
....What? You want me to add announcements when other players approach, or are you saying that you think that it does that already?
@SeeD419
Other Player!!!!!!!
In fact, when I saw this, it occur to me that "maybe it is not only notify when a creeper approach?"
@kaovalin
I haven't looked into it - but if it is possible, what mobs would you like to see added?
Could this be expanded to other mob types?
@Provinceman
Sure thing bud, done.
There's a configuration file that's created now where you can turn off permissions.
Could you possibly make it so everyone on the server can use it, instead of me having to use permissions, because I really don't know how to do permissions lol
Man, this is awesome! Can't wait for download :D