private static void from6(String name)
{
File configFile = new File(CreeperHeal.getCHFolder().getPath() + "/" + name + ".yml");
if (!configFile.exists())
return;
YamlConfiguration config = new YamlConfiguration();
try
{
config.load(configFile);
} catch (Exception e)
{
e.printStackTrace();
return;
}
creepers = config.getBoolean("replace.Creepers", true);
tnt = config.getBoolean("replace.TNT", true);
ghast = config.getBoolean("replace.Ghast", true);
dragons = config.getBoolean("replace.Dragons", false);
custom = config.getBoolean("replace.Magical", false);
fire = config.getBoolean("replace.Fire", true);
enderman = config.getBoolean("replace.Enderman", true);
replaceAbove = config.getBoolean("replace.replace-above-limit-only", false);
replaceLimit = config.getInt("replace.replace-limit", 64);
blockBlackList = loadList(config, "replace.restrict.blacklist");
blockWhiteList = loadList(config, "replace.restrict.whitelist");
protectList = loadList(config, "replace.protect-list");
repairTime = config.getInt("replace.repair-time-of-day", -1);
wither = config.getBoolean("replace.Wither", true);
ignoreFactionsWilderness = config.getBoolean("replace.factions.ignore-wilderness", false);
ignoreFactionsTerritory = config.getBoolean("replace.factions.ignore-territory", false);
grassToDirt = config.getBoolean("replace.replace-grass-with-dirt", false);
blockLava = config.getBoolean("grief.block.lava", false);
blockTNT = config.getBoolean("grief.block.TNT", false);
blockIgnite = config.getBoolean("grief.block.flint-and-steel", false);
griefBlockList = config.getBoolean("grief.block.blacklist", false);
blockSpawnEggs = config.getBoolean("grief.block.spawn-eggs", false);
blockPvP = config.getBoolean("grief.block.PvP", false);
warnLava = config.getBoolean("grief.warn.lava", false);
warnTNT = config.getBoolean("grief.warn.TNT", false);
warnIgnite = config.getBoolean("grief.warn.flint-and-steel", false);
warnBlackList = config.getBoolean("grief.warn.blacklist", false);
warnSpawnEggs = config.getBoolean("grief.warn.spawn-eggs", false);
warnPvP = config.getBoolean("grief.warn.PvP", false);
preventFireSpread = config.getBoolean("grief.prevent-fire-spread.fire", false);
preventFireLava = config.getBoolean("grief.prevent-fire-spread.lava", false);
placeList = loadList(config, "grief.blacklist");
configFile.delete();
}