added config updater
This commit is contained in:
parent
532e6c01f3
commit
95c591f55c
@ -30,7 +30,7 @@ public class Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ConfigUpdater.update(PluginBase.getInstance(), name, this.configFile);
|
ConfigUpdater.update(PluginBase.getInstance(), name + ".yml", this.configFile);
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ public class ConfigFile {
|
|||||||
plugin.saveResource(name + ".yml", false);
|
plugin.saveResource(name + ".yml", false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ConfigUpdater.update(PluginBase.getInstance(), name, this.file);
|
ConfigUpdater.update(PluginBase.getInstance(), name + ".yml", this.file);
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user