@EventHandler(priority= EventPriority.NORMAL)
    public void onInventoryOpenEvent(InventoryOpenEvent e){
        
        if(e.getPlayer().hasPermission("pexp.everywhere")){
            
            return;
            
        }
        
        if(!(e.getPlayer() instanceof Player)){
        
            if(e.getView().getType() == InventoryType.ENCHANTING){
                
                if(this.plugin.config.method.equalsIgnoreCase("bi") && this.plugin.config.limitcount > 0){

                    Player p = (Player) e.getPlayer();

                    if(p.isSneaking()){

                        e.setCancelled(true);

                    }

                }

            }
        
        }
        
    }