package me.kamilkime.KCaptcha;

import java.io.File;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class FileDataManager{

	private static File mainDir = Main.plugin.getDataFolder();
	private static File cfgFile = new File(mainDir, "config.yml");
	
	public static void checkMainDir(){
		if(!mainDir.exists()){
			mainDir.mkdir();
}
}
	public static void checkCfgFile(){
		if(!cfgFile.exists()){
			try{
			cfgFile.createNewFile();
}
			catch(Exception e){
				System.out.println("8l=-=-=-=-=-=<4lERROR8l>=-=-=-=-=-=");
				System.out.println("clNie mozna utworzyc configu, wylacznie pluginu...");
				Bukkit.getServer().getPluginManager().disablePlugin(Main.plugin);
				System.out.println("8l=-=-=-=-=-=<4lERROR8l>=-=-=-=-=-=");
}
}
		Main.plugin.getConfig().options().copyDefaults(true);
		Main.plugin.saveConfig();
}
	public static void load(){
		Main.EnableBarAPI = Main.plugin.getConfig().getBoolean("enableBarAPI");
		Main.CaptchaLenght = Main.plugin.getConfig().getInt("captchaLenght");
		Main.EnableChatMessage = Main.plugin.getConfig().getBoolean("enableChatMessage");
}
	public static void reloadCfg(){
		Main.plugin.reloadConfig();
		Main.plugin.saveConfig();
		Main.EnableBarAPI = Main.plugin.getConfig().getBoolean("enableBarAPI");
		Main.CaptchaLenght = Main.plugin.getConfig().getInt("captchaLenght");
		Main.EnableChatMessage = Main.plugin.getConfig().getBoolean("enableChatMessage");
}
	public static void spacer(Player p){
		p.sendMessage("");
		p.sendMessage("");
		p.sendMessage("");
}
}
@@ -487,33 +487,35 @@
 em.out.println(%22
-8
+%C2%A78%C2%A7
 l=-=-=-=-=-=%3C4lE
@@ -507,32 +507,36 @@
 =-=-=-=-=-=%3C
-4
+%C2%A74%C2%A7
 lERROR
-8
+%C2%A78%C2%A7
 l%3E=-=-=-=-=-
@@ -564,17 +564,19 @@
 rintln(%22
-c
+%C2%A7c%C2%A7
 lNie moz
@@ -714,17 +714,19 @@
 rintln(%22
-8
+%C2%A78%C2%A7
 l=-=-=-=
@@ -734,16 +734,20 @@
 =-=%3C
-4
+%C2%A74%C2%A7
 lERROR
-8
+%C2%A78%C2%A7
 l%3E=-
@@ -1206,233 +1206,13 @@
 ;%0A%09%09
-Main.EnableBarAPI = Main.plugin.getConfig().getBoolean(%22enableBarAPI%22);%0A%09%09Main.CaptchaLenght = Main.plugin.getConfig().getInt(%22captchaLenght%22);%0A%09%09Main.EnableChatMessage = Main.plugin.getConfig().getBoolean(%22enableChatMessage%22
+load(
 );%0A%7D
@@ -1311,13 +1311,14 @@
 sage(%22%22);%0A%7D%0A
-
 %7D
+%0A

Update FileDataManager.java