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

-
View User Profile
-
Send Message
Posted May 10, 2015You should add a empty glass bottle instead since people can get free cookies on skyrealms easy
-
View User Profile
-
Send Message
Posted Jun 22, 2014@drtshock
It's always good to get rid of console errors; printing stuff can be a bottleneck and it's good to not force the console to output too much at once because of that.
Also, the github link doesn't work.
-
View User Profile
-
Send Message
Posted May 20, 2014@MattyLuggs
It doesn't need an update sans the error in console every so often.
-
View User Profile
-
Send Message
Posted May 20, 2014Please update this plugin! I don't use essentials and I can't find a simple lightweight option to disable these potions without this plugin!
-
View User Profile
-
Send Message
Posted May 18, 2014@drtshock
At least a fix for this error that keeps spamming my console every so often: http://pastie.org/private/h8a2jbaasxbw8vq6ahztg
-
View User Profile
-
Send Message
Posted May 8, 2014@Flarupspige
It needs an update?
-
View User Profile
-
Send Message
Posted May 7, 2014Is this plug-in not being updatet anymore?
-
View User Profile
-
Send Message
Posted Mar 29, 2014@drtshock
I am using it because I cannot limit potions with Essentials due to another important plugin; this lets me get around that.
-
View User Profile
-
Send Message
Posted Mar 26, 2014@EmberC
Can't believe this is still being used lol.
-
View User Profile
-
Send Message
Posted Jan 2, 2014You should set this up to cover all potions or dispenser items.
-
View User Profile
-
Send Message
Posted Dec 30, 2013I'm looking forward to an update for this plugin. My server's in desperate need for this.
-
View User Profile
-
Send Message
Posted Nov 29, 201316:05:10 [SEVERE] Could not pass event PlayerInteractEvent to AntiInvisible v69 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190) at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:373) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:628) at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at net.drtshock.antiinvisibility.AntiInvisibility.onDrink(AntiInvisibility.java:37) at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
-
View User Profile
-
Send Message
Posted Sep 24, 2013Fix the bypass permission, it wont work >:/
-
View User Profile
-
Send Message
Posted Sep 22, 2013PPlease, check this error:
22.09 19:25:43 [Server] INFO at org.bukkit.potion.Potion.fromItemStack(Potion.java:389) 22.09 19:25:43 [Server] INFO at org.bukkit.potion.Potion.fromDamage(Potion.java:380) 22.09 19:25:43 [Server] INFO at org.bukkit.potion.Potion.extend(Potion.java:130) 22.09 19:25:43 [Server] INFO at org.bukkit.potion.Potion.setHasExtendedDuration(Potion.java:246) 22.09 19:25:43 [Server] INFO at org.apache.commons.lang.Validate.isTrue(Validate.java:157) 22.09 19:25:43 [Server] INFO Caused by: java.lang.IllegalArgumentException: Instant potions cannot be extended 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583) 22.09 19:25:43 [Server] INFO at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) 22.09 19:25:43 [Server] INFO at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:215) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.Packet15Place.handle(SourceFile:58) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:637) 22.09 19:25:43 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerInteractManager.interact(PlayerInteractManager.java:371) 22.09 19:25:43 [Server] INFO at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:207) 22.09 19:25:43 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) 22.09 19:25:43 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) 22.09 19:25:43 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) 22.09 19:25:43 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 22.09 19:25:43 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 22.09 19:25:43 [Server] INFO org.bukkit.event.EventException 22.09 19:25:43 [Server] SEVERE Could not pass event PlayerInteractEvent to AntiInvisible v69
-
View User Profile
-
Send Message
Posted Sep 15, 2013Hello again :D
-
View User Profile
-
Send Message
Posted Sep 5, 2013This Is a really awesome plugin. My only question Is could you adjust this to all potions? Or make a another plugin for strength? I know In 1.6 strength Is overpowered and thats why I am asking for It.
-
View User Profile
-
Send Message
Posted Aug 22, 2013If i give them nopot.bypass they still cant use it
-
View User Profile
-
Send Message
Posted Aug 15, 2013@drtshock
Heyyyyy thx u!! All errors are away! Thanks for the great work!
-
View User Profile
-
Send Message
Posted Aug 9, 2013@NoHoPeLess
My 10 lines of code save the day ;o
-
View User Profile
-
Send Message
Posted Aug 9, 2013lol @ drtshock, many many use this :DD best example for spleef,pvp :DDD this Plugin is amazing! great job!