@EventHandler(priority=EventPriority.MONITOR)
    public void onInventoryClick(final InventoryClickEvent e) {
        Player p = (Player) e.getWhoClicked();
        if(e.isLeftClick() || e.isRightClick() || e.isShiftClick()){
            if(DBmanager.menues.containsKey(p.getName())){
                e.setCancelled(true);
                itemMenu im = DBmanager.menues.get(p.getName());
                String ui = e.getCurrentItem().getItemMeta().getDisplayName();
                if(im.title.equalsIgnoreCase("Class Select")){
                    DBmanager.PlayerData.put(p.getName(), new PlayerDat(ui));
                    
                    p.sendMessage("Welcome young " + ui);
                    DBmanager.menues.remove(p.getName());
                }
                Bukkit.getScheduler().scheduleSyncDelayedTask(warlords.getPlugin, new Runnable() {
                        final Player play = (Player) e.getWhoClicked();
                        @Override
                        public void run() {
                            play.closeInventory();
                        }
                }, 1);
            }
        }
    }