Plugin category: Minecraft version: 1.8 Suggested name: NoBottles What I want: Hey everyone, I am looking for a plugin that removes glass bottles after a potion is consumed. When someone drinks a potion, they wont get the empty bottle but it would just get removed. Ideas for commands: No commands needed for this plugin. Ideas for permissions: No permissions needed When I'd like it by: Whenever you have time
@tkuiyeager1 Anything I need to do to make this plugin work? When I drink my potion I still get the bottle
Sorry I had a bug, please redownload the jar from the updated link. Also can be found in my previous message. Edit: @MemeplexOwner I saw your post in plugin development and your solution is more efficient than mine, would you mind uploading the jar here?
yeah i ended up making it :/ getting download now ;p EDIT: Code:Java { for (int i = 0; i < Bukkit.getServer().getOnlinePlayers().size(); i++) { Player p = (Player)Bukkit.getServer().getOnlinePlayers().toArray()[I]; if (EmptyBottle.this.toRemove.contains(p.getName())) { p.getInventory().getItemInHand().setAmount(0); EmptyBottle.this.toRemove.remove(p.getName()); } }[/I] why do that when you can remove it when it happens? (In the event).