.getActivePotionEffects()

Discussion in 'Plugin Development' started by Exloki, Nov 10, 2012.

Thread Status:
Not open for further replies.
  1. Hello,

    How would I go about converting .getActivePotionEffects() to an understandable format?

    Thanks!
     
  2. Offline

    Woobie

    Code:
    e.getPlayer().getActivePotionEffects();
    ?
     
  3. Offline

    thoosequa

    I'd go with
    Code:
    String[] potionEffect = new String[whatevernumberofpotioneffectsyouhave];
    if(player.getPlayer(PotionEffectType_SPEED == true){ //not sure about the potionEffects syntax, haven't looked in the api
    potionEffect[0] = "Swiftness";}
    
    And then going on for the entire array
     
Thread Status:
Not open for further replies.

Share This Page