Added automatic removal of TotemExplodes and UseTotem entries in config file

This commit is contained in:
David Berdik 2019-07-08 20:24:42 -04:00
parent 46478b62da
commit 627ee881e5

View File

@ -487,6 +487,15 @@ public class ConfigDB {
this.config.set("config.ShowDonateMsgToOp", Boolean.valueOf(true));
}
if (this.config.contains("config.TotemExplodes") || this.config.contains("config.UseTotem")) {
if (!hasUpdated) {
this.log.info("[Herobrine] Configuration file updating to Herobrine v" + pluginVersionNumber);
}
hasUpdated = true;
this.config.set("config.TotemExplodes", null);
this.config.set("config.UseTotem", null);
}
if (hasUpdated) {
try {
this.config.save(this.configF);