I am not sure if its possible but: Plugin category: MECH Suggested name: PotionNoParticles What I want: Hi, could anyone make a plugin that removes the particles from potions like the bubbles cause it would be cool for invisibility Ideas for commands: No commands needed for this plugin. Ideas for permissions: potion.noparticle When I'd like it by: before december.
Yes it is Code:JAVA private Set<Integer> poop = new HashSet<Integer>(); private void addPotionEffect(Player p, PotionEffect pe) { poop.add(pe.getType().getId()); Packet41MobEffect pm = new Packet41MobEffect(); pm.a = p.getEntityId(); pm.b = (byte)pe.getType().getId(); pm.c = (byte)pe.getAmplifier(); pm.d = (short)pe.getDuration(); ((CraftPlayer)p).getHandle().netServerHandler.sendPacket(pm); pm = null; }
I agree totaly, this ugly bubble is annoying... Im totaly noob in java, thx for the code, but i dont know what to do with xD The addpotioneffect method is never used localy, so suppose i must use a listener to see when a player use a potion or have a potion effect on him to call this method on the player ?
If I may ask what is the purpose of adding the variable to a HashSet? When/why would you need to get a variable out of this HashSet?
I was thinking of implementing this in my code and wanted to know the purpose of putting that in the hashset. Thanks