AntiInvisibility
Features
Get rid of the potions of invisibility!
Cancels when a player tries to drink or throw an invisibility potion and gives them an empty bottle instead.
Cancels the dispense event of invisibility potions.
Permissions
nopot.bypass - Allows use of invisibility potions.
Config
# Is always red. DenyMessage: You do not have permission to use potions of invisibility.
Installation
Drag and drop AntiInvisibility.jar in to your plugins folder, restart and enjoy :D
GitHub
Want to see the source code?
https://github.com/drtshock/AntiInvisibility
Future
Get to work with splash very soon!
Work with dispensers
Permissions based?
Give them a cookie instead?
Pull requests are much appreciated :)
Need quick help or just want to talk?
irc://irc.esper.net/drtshock
I guess it just needs an update for 1.4.4 ? Nothing serious?
Getting the same error on my server, using 1.4.2 Spigot and 0.5 release of AntiInvisibility.
Thanks for any and all help :)
http://pastebin.com/uFX2CTsD
@SiLenT0ne
Can you give me the stack trace you got in console in a pastebin or something? I will take a look at the code again. I stopped getting it on my server with the 0.5 version. Even when I did get it, it still worked just fine and doesn't cause lag or anything.
I like the idea of this plugin and it would help as not being able to the players hidden with the potion is annoying. However after installing, throwing Splash potions give a PlayerInteractEvent Error as Benas1 had with normal potions and normal potions will not work at all, they dont errror but after you finish drinking it nothing happens.
@Benas1
Uploaded the new one just now. Should be approved tomorrow. All fixed :D
@Benas1
Next time put it in a pastebin or something..
I see the issue. Just got it on my server as well. I'll push out a release today that fixes it.
@XeonG8
Haha alright. I'm working on another project right now but I'll take a look at that when I'm done :)
@drtshock
lol well if you know they are around you, ie they goofed up wearing some armor still or you just see minimap player entities
@XeonG8
How would you hit them if they're invisible :o
I could make a command or something that just turns everyone visible or everyone within a radius of you visible. I think that would be more functional, also easier to make.
@drtshock
"Are you talking about like an admin able to throw a potion that gets rid of the effect if a player has invisibility?"
exactly.. I don't want to disable stuff, just want an anti invisibility debuf that can be used on someone with invisibility to cancel the buff, maybe it can also prevent invis potion being used on themselves for 5mins or whatever
@XeonG8
What do you mean? I cancelled throwing splash potions. There shouldn't be anyway for anyone to use a splash potion.
Are you talking about like an admin able to throw a potion that gets rid of the effect if a player has invisibility?
Need an anti-invisibility splash potion .... possible? like just use invis potion, but with a command admins can use to make it do the reverse?
@mrchasez
Just uploaded a version that works with both splash and drinkable potions. Waiting for approval. It's version 0.3.
@mrchasez
I'll upload a non cake version. I just like to have some fun :P
I'll just take out that event and make it so it removes the bottle. And by uncraftable do you mean so they can't even brew it? Because that's an entire different event to listen to.
Mind giving me a link. Also mind changing the "cake" feature. Don't want people ruining the economy with by selling cake ;/
Just make it remove the bottle, and make it uncraftable.