1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-29 04:18:07 +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();
@ -806,19 +805,19 @@ public final class Jobs extends JavaPlugin {
pm.registerEvents(new JobsListener(getInstance()), getInstance());
pm.registerEvents(new JobsPaymentListener(getInstance()), getInstance());
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
pm.registerEvents(new JobsPayment1_14Listener(), getInstance());
}
if (Version.isCurrentEqualOrHigher(Version.v1_16_R3)) {
pm.registerEvents(new JobsPayment1_16Listener(), getInstance());
}
if (Version.isCurrentEqualOrHigher(Version.v1_20_R1)) {
pm.registerEvents(new PlayerSignEdit1_20Listeners(), getInstance());
pm.registerEvents(new PlayerSignEdit1_20Listeners(), getInstance());
}
if (getGCManager().useBlockProtection) {
pm.registerEvents(new PistonProtectionListener(), getInstance());
}
@ -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);