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:
parent
99ff0a3400
commit
70303080b6
@ -780,7 +780,6 @@ public final class Jobs extends JavaPlugin {
|
|||||||
CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class));
|
CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dao.loadBlockProtection();
|
dao.loadBlockProtection();
|
||||||
getExploreManager().load();
|
getExploreManager().load();
|
||||||
getCommandManager().fillCommands();
|
getCommandManager().fillCommands();
|
||||||
@ -806,19 +805,19 @@ public final class Jobs extends JavaPlugin {
|
|||||||
|
|
||||||
pm.registerEvents(new JobsListener(getInstance()), getInstance());
|
pm.registerEvents(new JobsListener(getInstance()), getInstance());
|
||||||
pm.registerEvents(new JobsPaymentListener(getInstance()), getInstance());
|
pm.registerEvents(new JobsPaymentListener(getInstance()), getInstance());
|
||||||
|
|
||||||
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
|
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
|
||||||
pm.registerEvents(new JobsPayment1_14Listener(), getInstance());
|
pm.registerEvents(new JobsPayment1_14Listener(), getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Version.isCurrentEqualOrHigher(Version.v1_16_R3)) {
|
if (Version.isCurrentEqualOrHigher(Version.v1_16_R3)) {
|
||||||
pm.registerEvents(new JobsPayment1_16Listener(), getInstance());
|
pm.registerEvents(new JobsPayment1_16Listener(), getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Version.isCurrentEqualOrHigher(Version.v1_20_R1)) {
|
if (Version.isCurrentEqualOrHigher(Version.v1_20_R1)) {
|
||||||
pm.registerEvents(new PlayerSignEdit1_20Listeners(), getInstance());
|
pm.registerEvents(new PlayerSignEdit1_20Listeners(), getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getGCManager().useBlockProtection) {
|
if (getGCManager().useBlockProtection) {
|
||||||
pm.registerEvents(new PistonProtectionListener(), getInstance());
|
pm.registerEvents(new PistonProtectionListener(), getInstance());
|
||||||
}
|
}
|
||||||
@ -925,11 +924,14 @@ public final class Jobs extends JavaPlugin {
|
|||||||
|
|
||||||
if (pManager != null) {
|
if (pManager != null) {
|
||||||
pManager.removePlayerAdditions();
|
pManager.removePlayerAdditions();
|
||||||
|
CMIMessages.consoleMessage("&eCleared boss bar cache");
|
||||||
pManager.saveAll();
|
pManager.saveAll();
|
||||||
|
CMIMessages.consoleMessage("&eSaved player data");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dao != null) {
|
if (dao != null) {
|
||||||
dao.closeConnections();
|
dao.closeConnections();
|
||||||
|
CMIMessages.consoleMessage("&eClosed database connection");
|
||||||
}
|
}
|
||||||
|
|
||||||
CMIMessages.consoleMessage(suffix);
|
CMIMessages.consoleMessage(suffix);
|
||||||
|
Loading…
Reference in New Issue
Block a user