View difference between Paste ID: yrVEgc2J and tZc1TTtc
SHOW: | | - or go back to the newest paste.
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(((PlayerInventory) event.getInventory()).getHelmet().equals(new ItemStack( Material.WOOL, 1, (byte)11 ))){
8+
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
	}