private static void from5() throws FileNotFoundException, IOException,
InvalidConfigurationException
{
CreeperLog.logInfo("Importing config from version 5", 1);
YamlConfiguration config = new YamlConfiguration();
File configFile = new File(CreeperHeal.getCHFolder() + "/config.yml");
config.load(configFile);
File advancedFile = new File(CreeperHeal.getCHFolder() + "/advanced.yml");
blockPerBlockInterval = config.getInt("replacement.block-per-block.interval", 20);
waitBeforeHeal = config.getInt("replacement.wait-before-heal.explosions", 60);
blockPerBlock = config.getBoolean("replacement.block-per-block", true);
waitBeforeHealBurnt = config.getInt("replacement.wait-before-heal.fire", 45);
crackDestroyedBricks = config.getBoolean("replacement.crack-destroyed-bricks", false);
boolean replaceAllChests = config.getBoolean("replacement.ignore-chests.all", false);
replaceProtectedChests = replaceAllChests
|| config.getBoolean("replacement.ignore-chests.protected", false);
logLevel = config.getInt("advanced.verbose-level", 1);
teleportOnSuffocate = config.getBoolean("advanced.teleport-when-buried", true);
dropDestroyedBlocks = config.getBoolean("advanced.drop-destroyed-blocks.enabled", true);
dropChance = config.getInt("advanced.drop-destroyed-blocks.chance", 100);
overwriteBlocks = config.getBoolean("advanced.replacement-conflict.overwrite", true);
preventBlockFall = config.getBoolean("advanced.prevent-block-fall", true);
distanceNear = config.getInt("advanced.distance-near", 20);
lightweightMode = config.getBoolean("advanced.lightweight-mode", false);
cmdAlias = config.getString("advanced.command-alias", "ch");
logWarnings = config.getBoolean("advanced.log-warnings", true);
preventChainReaction = config.getBoolean("advanced.prevent-chain-reaction", false);
explodeObsidian = config.getBoolean("advanced.obsidian.explode", false);
obsidianRadius = config.getInt("advanced.obsidian.radius", 5);
obsidianChance = config.getInt("advanced.obsidian.chance", 20);
debug = config.getBoolean("advanced.debug-messages", false);
waitBeforeBurnAgain = 240;
configFile.delete();
advancedFile.delete();