Updated config file

This commit is contained in:
Shansen 2013-01-04 22:26:00 +01:00
parent 312ed1c56f
commit 2787a65585
3 changed files with 7 additions and 3 deletions

View File

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

View File

@ -94,4 +94,4 @@ Messages:
ItemCostSuccess: "You paid %s gold nugget(s) for catching this mob!"
CatchChanceFail: "You failed to catch this mob!"
CatchChanceSuccess: ""
ConfigVersion: 1.21
ConfigVersion: 1.22

View File

@ -1,5 +1,5 @@
name: EggCatcher
version: 1.21
version: 1.22
description: This plugin allows you to catch mobs in eggs.
author: shansen