From b8a7e715f449253432fe0ede4746ea6db55c9d09 Mon Sep 17 00:00:00 2001 From: Shansen Date: Thu, 11 Jul 2013 02:11:06 +0100 Subject: [PATCH] Resetting configuration updater --- .../me/shansen/EggCatcher/EggCatcher.java | 58 +------------------ 1 file changed, 1 insertion(+), 57 deletions(-) diff --git a/src/main/java/me/shansen/EggCatcher/EggCatcher.java b/src/main/java/me/shansen/EggCatcher/EggCatcher.java index f109976..30454d3 100644 --- a/src/main/java/me/shansen/EggCatcher/EggCatcher.java +++ b/src/main/java/me/shansen/EggCatcher/EggCatcher.java @@ -96,63 +96,7 @@ public class EggCatcher extends JavaPlugin { public void CheckConfigurationFile() { double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0); - if (configVersion == 1.28) { - // - this.saveConfig(); - } - else if (configVersion == 1.25) { - this.getConfig().set("ItemCost.ItemData", 0); - this.saveConfig(); - } else if (configVersion == 1.22) { - this.getConfig().set("UseHealthPercentage", false); - this.getConfig().set("HealthPercentage.Pig", 100.0); - this.getConfig().set("HealthPercentage.Sheep", 100.0); - this.getConfig().set("HealthPercentage.MushroomCow", 100.0); - this.getConfig().set("HealthPercentage.Cow", 100.0); - this.getConfig().set("HealthPercentage.Chicken", 100.0); - this.getConfig().set("HealthPercentage.Squid", 100.0); - this.getConfig().set("HealthPercentage.Wolf", 100.0); - this.getConfig().set("HealthPercentage.Creeper", 100.0); - this.getConfig().set("HealthPercentage.Skeleton", 100.0); - this.getConfig().set("HealthPercentage.CaveSpider", 100.0); - this.getConfig().set("HealthPercentage.Spider", 100.0); - this.getConfig().set("HealthPercentage.PigZombie", 100.0); - this.getConfig().set("HealthPercentage.Zombie", 100.0); - this.getConfig().set("HealthPercentage.MagmaCube", 100.0); - this.getConfig().set("HealthPercentage.Slime", 100.0); - this.getConfig().set("HealthPercentage.Ghast", 100.0); - this.getConfig().set("HealthPercentage.Enderman", 100.0); - this.getConfig().set("HealthPercentage.Silverfish", 100.0); - this.getConfig().set("HealthPercentage.Blaze", 100.0); - this.getConfig().set("HealthPercentage.Villager", 100.0); - this.getConfig().set("HealthPercentage.Ocelot", 100.0); - this.getConfig().set("HealthPercentage.Witch", 100.0); - this.getConfig().set("HealthPercentage.Bat", 100.0); - this.getConfig().set("Messages.HealthPercentageFail", "The mob has more than %s percent health left and " - + "cannot be caught!"); - this.getConfig().set("CheckForUpdates", true); - this.getConfig().set("ConfigVersion", 1.25); - this.saveConfig(); - } else if (configVersion == 1.21) { - this.getConfig().set("VaultTargetBankAccount", ""); - this.getConfig().set("ConfigVersion", 1.22); - this.saveConfig(); - } else if (configVersion == 1.18) { - this.getConfig().set("ConfigVersion", 1.21); - this.getConfig().set("CatchChance.Bat", 100.0); - this.getConfig().set("CatchChance.Witch", 100.0); - this.getConfig().set("VaultCost.Bat", 0.0); - this.getConfig().set("VaultCost.Witch", 0.0); - this.getConfig().set("ItemCost.Amount.Bat", 0); - this.getConfig().set("ItemCost.Amount.Witch", 0); - this.saveConfig(); - } else if (configVersion == 1.17) { - this.getConfig().set("ConfigVersion", 1.18); - this.saveConfig(); - } else if (configVersion == 1.16) { - this.getConfig().set("ConfigVersion", 1.17); - this.saveConfig(); - } else { + if (configVersion != 2.00) { this.saveResource("config.yml", true); this.reloadConfig(); }