public void onExit(final Player player, String flag)
	{
		final FileConfiguration configFile = pCops.getPlugin().getConfig();
		
		StringBuilder equipmentPath = new StringBuilder("equipment.");
		equipmentPath.append(flag);
		equipmentPath.append(".items");
		List<String> equipmentItems = configFile.getStringList(equipmentPath.toString());
					
		String itemName = null;
		String[] parsedEquipmentData;
		
		ItemStack inHand = player.getItemInHand();
		
		for (String equipment : equipmentItems)
		{
			parsedEquipmentData = equipmentDataParser(equipment);
			itemName = parsedEquipmentData[1];
							
			for (ItemStack item : player.getInventory())
			{
				if (item != null)
				{
					ItemMeta meta = (ItemMeta)item.getItemMeta();
					if (meta != null && meta.getDisplayName() != null)
					{
						if (meta.getDisplayName().equalsIgnoreCase(itemName))
						{							
							if (inHand.isSimilar(item))
							{
								player.sendMessage(ChatColor.DARK_RED + "INSIDE inHand == item");
								/*player.getInventory().removeItem(player.getInventory().getItemInHand());*/
								player.getInventory().clear(player.getInventory().getHeldItemSlot());
								player.updateInventory();
							}
							else
							{
								player.sendMessage(ChatColor.DARK_RED + "INSIDE else");
								player.getInventory().removeItem(item);
								player.updateInventory();
							}
						}
					}
				}
			}
		}
	}