Advertisement
riking

Untitled

Jul 1st, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @EventHandler
  2.     public void InvClic(InventoryClickEvent event){
  3.         if(event.getAction().equals(InventoryAction.COLLECT_TO_CURSOR)){
  4.             if(event.getCursor().equals(new ItemStack( Material.WOOL, 1, (byte)11 ))){
  5.                 event.setCancelled(true);
  6.             }
  7.         }
  8.         else if(event.getAction().equals(InventoryAction.UNKNOWN)){
  9.             event.setCancelled(true);
  10.         }
  11.         else if (event.getRawSlot() == 5) { // Figure out which one it's supposed to be
  12.             event.setCancelled(true);
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement