No Particles On a Potion Effect , How Do I Do?

Discussion in 'Plugin Development' started by WitheringDiamond, Aug 4, 2015.

Thread Status:
Not open for further replies.
  1. Hello There , This is my first forum post so I hope this is alright..
    I Have Run Into a problem with a custom NightVison Plugin,
    I Need a way to Add a potion effect to a player without any particles ,
    Is this possible? #NewToBukkit

    I a using the code:
    Code:
     p.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION,100000 ,2));
    But it displays particles.

    If anyone could get the Awesome back to me that would be epic!
    If you need the whole of the code i can provide that..
     
  2. I think this requires packets and nms, which is very hard for people like you who just have started with bukkit
     
    Shortninja66 likes this.
  3. Offline

    Shortninja66

  4. Offline

    Eos

    You need to use packets.
     
  5. Thanks For that info , could you specify what a packet is or what kinda of packet is needed
     
  6. @FisheyLP @Eos @WitheringDiamond
    No need for packets :p, it's the 4th parameter in PotionEffect:
    new PotionEffect(PotionEffectType type, int duration, int ampflier, boolean ambient, boolean showParticles)
     
  7. Offline

    Gater12

  8. @Gater12
    I'm guessing he's using 1.8, but if he's not, I believe potion effect particles are spawned by the client based on it's active potion effects, so it's not possible to hide the particles in 1.7-
     
  9. Ok i do that bu tit comes out with an error
     
  10. @WitheringDiamond
    What kind of error? Stacktrace of compiler warning? In both cases send me the error
     
  11. Error Fixed But Dont Work
     
  12. Offline

    Zombie_Striker

Thread Status:
Not open for further replies.

Share This Page