Solved Help with PotionEffect

Discussion in 'Plugin Development' started by mathiasrocker, Oct 29, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    mathiasrocker

    Hi
    I dont know how i do this but i need help!
    i really want to know how i can add a PotionEffect to a player. Like Speed 1/2.
    can someone help me?
     
  2. Offline

    Sheepii

    Then when you don't want them to have potion effects
     
  3. Offline

    Kazzababe

    Code:
    player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, <duration>, <potion level>));
     
  4. Offline

    mathiasrocker

    Thank you that helped me much! but i changed SLOW with SPEED

    And you

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
Thread Status:
Not open for further replies.

Share This Page