9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00

Fixed rare errors

This commit is contained in:
XiaoMoMi
2024-09-07 21:20:13 +08:00
parent b6bfb96fab
commit b6531636eb
2 changed files with 3 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ public class BukkitStorageManager implements StorageManager, Listener {
@Override
public void disable() {
HandlerList.unregisterAll(this);
if (this.timerSaveTask != null)
this.timerSaveTask.cancel();
if (this.dataSource != null && !onlineUserMap.isEmpty())
this.dataSource.updateManyPlayersData(onlineUserMap.values(), true);
if (this.dataSource != null)