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
You should add a empty glass bottle instead since people can get free cookies on skyrealms easy
@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.
@MattyLuggs
It doesn't need an update sans the error in console every so often.
Please update this plugin! I don't use essentials and I can't find a simple lightweight option to disable these potions without this plugin!
@drtshock
At least a fix for this error that keeps spamming my console every so often: http://pastie.org/private/h8a2jbaasxbw8vq6ahztg
@Flarupspige
It needs an update?
Is this plug-in not being updatet anymore?
@drtshock
I am using it because I cannot limit potions with Essentials due to another important plugin; this lets me get around that.
@EmberC
Can't believe this is still being used lol.
You should set this up to cover all potions or dispenser items.
I'm looking forward to an update for this plugin. My server's in desperate need for this.
16: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
Fix the bypass permission, it wont work >:/
PPlease, 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
Hello again :D
This 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.
If i give them nopot.bypass they still cant use it
@drtshock
Heyyyyy thx u!! All errors are away! Thanks for the great work!
@NoHoPeLess
My 10 lines of code save the day ;o
lol @ drtshock, many many use this :DD best example for spleef,pvp :DDD this Plugin is amazing! great job!