@EventHandler
	public void onInventoryClick(InventoryClickEvent event) {
		Player player = (Player) event.getWhoClicked(); // The player that clicked the item
		
		ItemStack clicked = event.getCurrentItem(); // The item that was clicked
		Inventory inventory = event.getInventory(); // The inventory that was clicked in
		if (inventory.getName().equals(UIManager.Shop.getName())) { // The inventory is our custom Inventory
			if (clicked.getType() == Material.DIAMOND_BLOCK) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuTreasure);
				//Treasure
			}else if (clicked.getType() == Material.GOLD_INGOT) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuResource);
				//Resources
			}else if (clicked.getType() == Material.FLOWER_POT_ITEM) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuDecorations);
				//Decorations
			}else if (clicked.getType() == Material.IRON_SWORD) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuArmy);
				//Army
			}else if (clicked.getType() == Material.TNT) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuDefense);
				//Defense
			}else if (clicked.getType() == Material.SIGN) { // The item that the player clicked it dirt
				event.setCancelled(true); // Make it so the dirt is back in its original spot
				player.closeInventory(); // Closes there inventory
				player.openInventory(UIManager.MenuShield);
				//Shield
			}else if(clicked.getType() == Material.BLAZE_ROD) {
				UIManager.giveItemName(player, Material.BLAZE_ROD, 5, "Builder's Hut", "Right click to place!");
				player.closeInventory();
			}else if(clicked.getType() == Material.RAILS) {
				UIManager.giveItemName(player, Material.RAILS, 5, "Gold Mine", "Right click to place!");
				player.closeInventory();
			}else{
				event.setCancelled(true);
			}
		}

	}