@EventHandler(priority = EventPriority.MONITOR)
    public void onClick(InventoryClickEvent event)
    {
        if(event.getWhoClicked() instanceof Player == false) return;
        int slot = event.getView().convertSlot(event.getRawSlot());
        if(slot == 8 && event.getInventory().getType() != InventoryType.PLAYER && p.getTool().isSimilar(event.getCurrentItem()))
        {
            event.setCancelled(true);
            event.setResult(Event.Result.DENY);
        }
    }