@EventHandler
	public void click(InventoryClickEvent event) {
		Player p = (Player) event.getWhoClicked();
		Inventory inv = event.getInventory();
		String name = inv.getTitle();
		if(name.equals(title) && event.getRawSlot()!= -999) {
			event.setCancelled(true);
			ItemStack item = event.getCurrentItem()!= null ? event.getCurrentItem() : event.getCursor()!= null ? event.getCursor() : inv.getItem(event.getRawSlot());
			if(item.getType()== Material.MAGMA_CREAM) {
				p.closeInventory();
				return;
			}
			String gamename = ChatColor.stripColor(item.getItemMeta().getDisplayName().split(" ")[0]);
			Game game = GameManager.getGame(gamename);
			if(event.isShiftClick()) {
				game.restart();
			} else if(event.isRightClick()) {
				game.disable();
			} else if(event.isLeftClick()) {
				game.enable();
			}
		}
	}