@EventHandler
	public void onPlayerInventoryClose(InventoryCloseEvent e)
	{
		String title;
		Player p;
		ItemStack[] stack;
		
		title = e.getInventory().getTitle();
		
		if (!title.contains("Armor"))
			return;
		
		p = Bukkit.getPlayer(title.substring(0, title.indexOf("'s") - 1));
		
		if (p == null)
			return;
		
		stack = new ItemStack[4];
		
		for (int i = 0; i < 4; i++)
			stack[i] = e.getInventory().getContents()[i] == null ? null : e.getInventory().getContents()[i].clone();
		
		p.getInventory().setArmorContents(stack);
	}