Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void InvClic(InventoryClickEvent event){
- if(event.getAction().equals(InventoryAction.COLLECT_TO_CURSOR)){
- if(event.getCursor().equals(new ItemStack( Material.WOOL, 1, (byte)11 ))){
- event.setCancelled(true);
- }
- }
- else if(((PlayerInventory) event.getInventory()).getHelmet().equals(new ItemStack( Material.WOOL, 1, (byte)11 ))){
- event.setCancelled(true);
- }
- else if(event.getAction().equals(InventoryAction.UNKNOWN)){
- event.setCancelled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement