better :)

Former-commit-id: d701c1c9a486d6f9f7fbe300152fb43cf9a0154e
This commit is contained in:
Ghost_chu committed 2020-01-03 18:59:13 +08:00
1 parent 78c8cc4095
commit e3022afe65
2 files changed
+2 -2

No files matched your search

@@ -146,7 +146,7 @@ public class DatabaseManager {
/**
* Unload the DatabaseManager, run at onDisable()
*/
public void uninit() {
public void unInit() {
if (task != null && !task.isCancelled()) {
task.cancel();
}
@@ -366,7 +366,7 @@ public class QuickShop extends JavaPlugin {
Util.debugLog("Cleaning up database queues...");
if (this.getDatabaseManager() != null) {
this.getDatabaseManager().uninit();
this.getDatabaseManager().unInit();
}
Util.debugLog("Unregistering tasks...");