No Potion particles

Discussion in 'Archived: Plugin Requests' started by Retherz_, Nov 8, 2012.

  1. Offline

    Retherz_

    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. :)
     
  2. Offline

    cman1885

    Not possible.
     
  3. Offline

    Woobie

    Yes it is :p
    Code:JAVA
    1. private Set<Integer> poop = new HashSet<Integer>();
    2. private void addPotionEffect(Player p, PotionEffect pe) {
    3. poop.add(pe.getType().getId());
    4. Packet41MobEffect pm = new Packet41MobEffect();
    5. pm.a = p.getEntityId();
    6. pm.b = (byte)pe.getType().getId();
    7. pm.c = (byte)pe.getAmplifier();
    8. pm.d = (short)pe.getDuration();
    9. ((CraftPlayer)p).getHandle().netServerHandler.sendPacket(pm);
    10. pm = null;
    11. }
     
    chasechocolate likes this.
  4. Offline

    cman1885

    Interesting.
     
  5. Offline

    Retherz_

    Can anyone do this?
     
  6. Offline

    wristdirect

    Oh Woobie, I love how all your examples involve poop :p
     
  7. Offline

    Retherz_

    Can anyone do this?
     
  8. 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 ?
     
  9. Offline

    SnowGears

    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?
     
  10. Offline

    Woobie

    For other purposes.
    If I may ask, why did you bump this thread with an offtopic question?
     
  11. Offline

    SnowGears

    I was thinking of implementing this in my code and wanted to know the purpose of putting that in the hashset. Thanks
     

Share This Page