public static void loadHats() {
		ConfigManager.reload(plugin, "hats.yml");
		FileConfiguration config = ConfigManager.get("hats.yml");
		ConfigurationSection configurationSection = config.getConfigurationSection("hats");
		loadedHats.clear();
		for (String name : configurationSection.getKeys(false)) {
			if (loadedHats.size() < 54) {
				if(config.get("hats." + name + ".dataValue") != null) {
					config.set("hats." + name + ".data-value", config.get("hats." + name + ".dataValue"));
					config.set("hats." + name + ".dataValue", null);
				}
				double price = Main.isEconomyEnabled() ? config.getDouble("hats." + name + ".price") : 0;
				Material material = Material.getMaterial(config.getString("hats." + name + ".material"));
				String displayName = config.getString("hats." + name + ".display-name");
				short dataValue = (short) config.getInt("hats." + name + ".data-value");
				String description = config.getString("hats." + name + ".description");

				Hat hat = new Hat(name, displayName, price, material, dataValue, description);
				loadedHats.add(hat);

			}
		}
		ConfigManager.save(plugin, "hats.yml");
	}