svdragster

Untitled

Feb 24th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1.         List<PotionEffect> effects = new ArrayList<PotionEffect>();
  2.         effects.addAll(player.getAllActivePotionEffects());
  3.         for (int i=0; i<effects.size(); i++) {
  4.             PotionEffect effect = effects.get(i);
  5.             int id = effect.getPotionID();
  6.             if (id == 3) { // Haste
  7.                 return;
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment