How to add a potion effect to a player?

Discussion in 'Plugin Development' started by JayzaSapphire, May 12, 2012.

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

    JayzaSapphire

    Please someone tell me how?
    t.addPotionEffect( ?????? );
     
  2. Offline

    MrAverage

    Example:
    Player player = whatever..
    player.addPotionEffect(new PotionEffect(PotionEffectType.POISON, 200, 1));

    This adds the poison effect for 10 seconds (200/20).
     
    Hypermegazord likes this.
Thread Status:
Not open for further replies.

Share This Page