Solved removing potion effect

Discussion in 'Plugin Development' started by DiamondSworder, Dec 27, 2015.

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

    DiamondSworder

    So im coding my kit plugin and im trying to make it so where when the player changes kits it removes the current ones and switches over to the other ones, but i cant find a way to make it work, i have
    Code:
    p.removePotionEffect(PotionEffectType.) 
    Not too sure what to do.
     
  2. Offline

    mine-care

    @DiamondSworder
    Is the thread truly solved? If yes please provide the solution you found just in case anyone stumbles across this forum while looking for an answer to a similar or the same problem of theirs
     
  3. Offline

    DiamondSworder

    Code:
            for (PotionEffect potionEffect : p.getActivePotionEffects()){
            p.removePotionEffect(potionEffect.getType());
           
            }
    
    Add this to the class you want the potions removed.
     
Thread Status:
Not open for further replies.

Share This Page