package musician101.emergencywhitelist;

import java.io.File;

import org.bukkit.configuration.file.FileConfiguration;

public class Config
{
	EmergencyWhitelist plugin;
	public boolean enabled;
	public boolean updateCheck;
	
	/**
	 * Config constructor.
	 * 
	 * @param plugin Reference's the plugin's main class.
	 */
	public Config(EmergencyWhitelist plugin)
	{
		this.plugin = plugin;
		File config = new File(plugin.getDataFolder(), "config.yml");
		if (!config.exists())
		{
			if (!config.getParentFile().mkdirs()) plugin.getLogger().warning("Could not create config.yml!");
			plugin.saveDefaultConfig();
		}
		reloadConfiguration();
	}
	
	/**
	 * Reloads the server's config file.
	 */
	public void reloadConfiguration()
	{
		plugin.reloadConfig();
		final FileConfiguration config = plugin.getConfig();
		config.getBoolean("enabled", true);
		config.getBoolean("checkForUpdate", true);
	}
}

@@ -644,20 +644,16 @@
 %7D%0A%09%0A%09/**
-%0A%09 *
  Reloads
@@ -678,18 +678,16 @@
 ig file.
-%0A%09
  */%0A%09pub

Comment formatting.