@EventHandler()
    public void onInventoryClick(InventoryClickEvent e) {
        if (e.getWhoClicked() instanceof Player) {
            if (!(e.getSlotType() == SlotType.QUICKBAR)) {

                Inventory inv = onInventoryInteract((Player) e.getWhoClicked(), e.getInventory(), e.getRawSlot());
                if (inv != null) {
                    e.getWhoClicked().openInventory(inv);
                    e.setCancelled(true);
                }
            }
        }
    }