Spigot PotionRemover 1.1

This Plugin will delete your potion

  1. Zicks submitted a new resource:

    PotionRemover - This Plugin will delete your potion

    Read more about this resource...
     
  2. 57 rules lol, not even a message for no permissions, no check or the player is a player.
     
  3. Nice. Glad you were able to copy straight from a bcbroz tutorial. Don't understand why so many of these heal (related) plugins are being added
     
  4. äähhh sorry i dont know whos bcbroz is i have this easy plugin freecoded -.-
     
  5. oh thanks i forgot it i will do it now
     
  6. ok its added
     
  7. Code (Text):
      p.removePotionEffect(PotionEffectType.ABSORPTION);
      p.removePotionEffect(PotionEffectType.BLINDNESS);
      p.removePotionEffect(PotionEffectType.CONFUSION);
      p.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
      p.removePotionEffect(PotionEffectType.FAST_DIGGING);
      p.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
      p.removePotionEffect(PotionEffectType.HARM);
      p.removePotionEffect(PotionEffectType.HEAL);
      p.removePotionEffect(PotionEffectType.HEALTH_BOOST);
      p.removePotionEffect(PotionEffectType.HUNGER);
      p.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
      p.removePotionEffect(PotionEffectType.INVISIBILITY);
      p.removePotionEffect(PotionEffectType.JUMP);
      p.removePotionEffect(PotionEffectType.NIGHT_VISION);
      p.removePotionEffect(PotionEffectType.POISON);
      p.removePotionEffect(PotionEffectType.REGENERATION);
      p.removePotionEffect(PotionEffectType.SATURATION);
      p.removePotionEffect(PotionEffectType.SLOW);
      p.removePotionEffect(PotionEffectType.SLOW_DIGGING);
      p.removePotionEffect(PotionEffectType.SPEED);
      p.removePotionEffect(PotionEffectType.WATER_BREATHING);
      p.removePotionEffect(PotionEffectType.WEAKNESS);
      p.removePotionEffect(PotionEffectType.WITHER);
    Can be reduced to:

    Code (Text):
    for (PotionEffectType type : PotionEffectType.values())
    {
      p.removePotionEffect(type);
    }
    That will also make this plugin version independent.
     
  8. sorry but i coding my first plugin at saturday -.-
     
  9. What?
     
  10. sorry i has a bad day .... I am very tense
     
  11. No, I mean, I don't understand what you were trying to say. lol
     
  12. oh sorry i am stupid