Added automatic removal of TotemExplodes and UseTotem entries in config file
This commit is contained in:
parent
46478b62da
commit
627ee881e5
@ -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);
|
||||
|
Reference in New Issue
Block a user