Advertisement
morphesus

Untitled

Jul 23rd, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EventHandler
  2. public void onDamage(PotionSplashEvent evt) {
  3.     byte id1 = evt.getPotion().getItem().getData().getData();
  4.     byte id2 = evt.getPotion().getItem().getData().getData();
  5.  
  6.     if(evt.getPotion().getItem().getData().getItemType() == Material.POTION) {
  7.         if(id1 == 32732 || id2 == 32764) {
  8.             //blaaa
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement