9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

Cancel on disable

This commit is contained in:
Daniel Zhang
2024-07-31 22:27:44 +08:00
parent a348b31979
commit e07ade7c8b

View File

@@ -90,6 +90,7 @@ public class BukkitCompetitionManager implements CompetitionManager {
this.timerCheckTask.cancel(); this.timerCheckTask.cancel();
if (currentCompetition != null && currentCompetition.isOnGoing()) if (currentCompetition != null && currentCompetition.isOnGoing())
this.currentCompetition.stop(false); this.currentCompetition.stop(false);
if (this.redisPlayerCount != null)
this.commandConfigMap.clear(); this.commandConfigMap.clear();
this.timeConfigMap.clear(); this.timeConfigMap.clear();
} }