1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

More feedback message on plugin disable

This commit is contained in:
Zrips 2023-12-19 13:38:02 +02:00
parent 99ff0a3400
commit 70303080b6

View File

@ -780,7 +780,6 @@ public final class Jobs extends JavaPlugin {
CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class));
}
dao.loadBlockProtection();
getExploreManager().load();
getCommandManager().fillCommands();
@ -925,11 +924,14 @@ public final class Jobs extends JavaPlugin {
if (pManager != null) {
pManager.removePlayerAdditions();
CMIMessages.consoleMessage("&eCleared boss bar cache");
pManager.saveAll();
CMIMessages.consoleMessage("&eSaved player data");
}
if (dao != null) {
dao.closeConnections();
CMIMessages.consoleMessage("&eClosed database connection");
}
CMIMessages.consoleMessage(suffix);