AntiInvisibility

Banner

banner

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 :)

hi

Need quick help or just want to talk?
irc://irc.esper.net/drtshock

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of thequestingbeast thequestingbeast Mar 29, 2014 at 14:46 UTC - 0 likes

    @drtshock: Go

    I am using it because I cannot limit potions with Essentials due to another important plugin; this lets me get around that.

  • Avatar of drtshock drtshock Mar 26, 2014 at 17:03 UTC - 0 likes

    @EmberC: Go

    Can't believe this is still being used lol.

    Lead Developer of Minetime

  • Avatar of EmberC EmberC Jan 02, 2014 at 15:24 UTC - 0 likes

    You should set this up to cover all potions or dispenser items.

  • Avatar of th3oneironaut th3oneironaut Dec 31, 2013 at 01:50 UTC - 0 likes

    I'm looking forward to an update for this plugin. My server's in desperate need for this.

  • Avatar of dja12123 dja12123 Nov 30, 2013 at 07:26 UTC - 0 likes

    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

  • Avatar of leonvakt leonvakt Sep 24, 2013 at 08:35 UTC - 0 likes

    Fix the bypass permission, it wont work >:/

    Signature

  • Avatar of bernardopmbr bernardopmbr Sep 23, 2013 at 02:29 UTC - 0 likes

    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

  • Avatar of NoHoPeLess NoHoPeLess Sep 15, 2013 at 15:52 UTC - 0 likes

    Hello again :D

    17:49:00 [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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
    	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 org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:160)
    	at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:608)
    	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.IllegalArgumentException: Instant potions cannot be extended
    	at org.apache.commons.lang.Validate.isTrue(Validate.java:157)
    	at org.bukkit.potion.Potion.setHasExtendedDuration(Potion.java:253)
    	at org.bukkit.potion.Potion.extend(Potion.java:137)
    	at org.bukkit.potion.Potion.fromDamage(Potion.java:387)
    	at org.bukkit.potion.Potion.fromItemStack(Potion.java:396)
    	at net.drtshock.antiinvisibility.AntiInvisibility.onDrink(AntiInvisibility.java:36)
    	at sun.reflect.GeneratedMethodAccessor168.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)
    	... 17 more
    

    BalayaCraft! Server-IP 80.241.215.15:25573 | BalayaCraft-Website | Facebook | Twitter | Youtube |

  • Avatar of tateschroeder13 tateschroeder13 Sep 06, 2013 at 01:19 UTC - 0 likes

    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.

  • Avatar of leonvakt leonvakt Aug 22, 2013 at 19:55 UTC - 0 likes

    If i give them nopot.bypass they still cant use it

Facts

Date created
Nov 02, 2012
Category
Last update
Aug 09, 2013
Development stage
Release
Language
  • enUS
License
Inspector Pineapple
Curse link
AntiInvisibility
Downloads
5,815
Recent files
  • R: 69 for CB 1.6.2-R0.1 Aug 09, 2013
  • R: 1.0 for CB 1.5.2-R0.1 May 10, 2013
  • R: 0.9 for CB 1.4.6-R0.2 Dec 31, 2012
  • B: 0.8 for CB 1.4.6-R0.1 Dec 30, 2012
  • B: 0.7 for CB 1.4.6-R0.1 Dec 24, 2012

Authors