Skip to content

Commit

Permalink
Added more messages on plugin disable to better understand which task…
Browse files Browse the repository at this point in the history
…s are disabled (#1074)
  • Loading branch information
OmerBenGera committed Apr 28, 2022
1 parent fb1d57f commit b5ae8c6
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -350,12 +350,16 @@ public void onDisable() {
ex.printStackTrace();
PluginDebugger.debug(ex);
} finally {
SuperiorSkyblockPlugin.log("Unloading worlds...");
unloadIslandWorlds();

SuperiorSkyblockPlugin.log("Shutting down calculation task...");
CalcTask.cancelTask();

SuperiorSkyblockPlugin.log("Shutting down executor");
Executor.close();
SuperiorSkyblockPlugin.log("Closing database. This may hang the server. Do not shut it down, or data may get lost.");

SuperiorSkyblockPlugin.log("Closing database. This may hang the server. Do not shut it down, or data may get lost.");
//pluginDebugger.cancel();
dataHandler.closeConnection();
}
Expand Down

0 comments on commit b5ae8c6

Please sign in to comment.