Use custom service abstraction in favour of Aero's AbstractService

Use Aero's YamlConfig in favour of FConfig
Refractoring
Small edits
This commit is contained in:
JeromSar
2016-03-01 17:47:01 +01:00
parent 7328d20c84
commit e93ac11172
47 changed files with 95 additions and 292 deletions

View File

@ -31,7 +31,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
import me.totalfreedom.totalfreedommod.banning.Ban;
import me.totalfreedom.totalfreedommod.config.FConfig;
import net.pravian.aero.config.YamlConfig;
import me.totalfreedom.totalfreedommod.config.ConfigEntry;
import net.pravian.aero.util.Ips;
import org.apache.commons.io.FileUtils;
@ -631,7 +631,7 @@ public class FUtil
public static void createBackups(String file, boolean onlyWeekly)
{
final String save = file.split("\\.")[0];
final FConfig config = new FConfig(TotalFreedomMod.plugin, "backup/backup.yml", false);
final YamlConfig config = new YamlConfig(TotalFreedomMod.plugin, "backup/backup.yml", false);
config.load();
// Weekly