mirror of
https://github.com/shansen/EggCatcher.git
synced 2025-02-01 19:51:24 +01:00
Updated config file
This commit is contained in:
parent
312ed1c56f
commit
2787a65585
@ -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);
|
||||
|
@ -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
|
@ -1,5 +1,5 @@
|
||||
name: EggCatcher
|
||||
version: 1.21
|
||||
version: 1.22
|
||||
description: This plugin allows you to catch mobs in eggs.
|
||||
author: shansen
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user