mirror of
https://github.com/shansen/EggCatcher.git
synced 2024-11-26 03:55:44 +01:00
Updated configuration file, and configuration updater to support ItemData.
This commit is contained in:
parent
2f93e55cf4
commit
55a05b8c15
@ -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);
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user