Updated configuration file, and configuration updater to support ItemData.

This commit is contained in:
Shansen 2013-04-04 03:25:14 +02:00
parent 2f93e55cf4
commit 55a05b8c15
2 changed files with 7 additions and 2 deletions

View File

@ -96,9 +96,13 @@ public class EggCatcher extends JavaPlugin {
public void CheckConfigurationFile() {
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
if (configVersion == 1.25) {
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);

View File

@ -63,6 +63,7 @@ VaultCost:
Bat: 0.0
ItemCost:
ItemId: 371
ItemData: 0
Amount:
Pig: 0
Sheep: 0
@ -120,5 +121,5 @@ Messages:
CatchChanceFail: "You failed to catch this mob!"
CatchChanceSuccess: ""
HealthPercentageFail: "The mob has more than %s percent health left and cannot be caught!"
ConfigVersion: 1.25
ConfigVersion: 1.28
CheckForUpdates: true