public String translateEntity(String inputName, String type) {
		// Translate spawner language keys
		inputName = ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', "" + inputName));
		String returnName = "default";
		ConfigurationSection csEntities;
		Map<String, Object> entityValues;
		Iterator it;
		try {
			csEntities = Main.language.getConfig().getConfigurationSection("Entities");
			entityValues = csEntities.getValues(false);
			it = entityValues.entrySet().iterator();
		} catch (Exception e) {
			Main.instance.getLogger().severe("Your Spawner language.yml is missing entities in the Entities section. This is probably because it's outdated. You can update it manually or to install a new one you can rename or delete the old one. Once finished run the command /spawner reload");
			return null;
		}

		if (type != null) {
			while (it.hasNext()) {
				Map.Entry pairs = (Map.Entry) it.next();
				String testKey = ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', "" + pairs.getKey()));
				String testValue = ChatColor.stripColor(ChatColor.translateAlternateColorCodes('&', "" + pairs.getValue()));
				if (testValue.equalsIgnoreCase(inputName) || testKey.equalsIgnoreCase(inputName)) {
					switch (type) {
						case "value":
							returnName = "" + pairs.getValue();
							break;
						case "key":
							returnName = testKey;
							break;
					}
					it.remove();
					break;
				}

				it.remove();
			}
		}

		return returnName;
	}