Removed saveAllConfigs on disable
This commit is contained in:
@@ -405,7 +405,6 @@ public abstract class EcoPlugin extends JavaPlugin {
|
||||
|
||||
this.getEventManager().unregisterAllListeners();
|
||||
this.getScheduler().cancelAll();
|
||||
this.getConfigHandler().saveAllConfigs();
|
||||
|
||||
this.handleDisable();
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user