Removed saveAllConfigs on disable

This commit is contained in:
Auxilor
2021-08-06 22:00:04 +01:00
parent ce231934a3
commit 155a349569
2 changed files with 1 additions and 2 deletions

View File

@@ -405,7 +405,6 @@ public abstract class EcoPlugin extends JavaPlugin {
this.getEventManager().unregisterAllListeners();
this.getScheduler().cancelAll();
this.getConfigHandler().saveAllConfigs();
this.handleDisable();

View File

@@ -26,7 +26,7 @@ class EcoConfigHandler(
override fun callUpdate() {
for (method in reflections.getMethodsAnnotatedWith(ConfigUpdater::class.java)) {
if (!Modifier.isStatic(method.modifiers)) {
throw InvalidUpdateMethodException("Update method must be static.")
throw InvalidUpdateMethodException("Update method in ${method.declaringClass.name} must be static.")
}
try {