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

Fix build

This commit is contained in:
Daniel Zhang
2024-07-31 22:38:14 +08:00
parent 43fa9d7534
commit 8b5779d4cb

View File

@@ -71,9 +71,16 @@ public class BukkitCompetitionManager implements CompetitionManager {
);
plugin.debug("Loaded " + commandConfigMap.size() + " competitions");
this.redisPlayerCount = hasRedis ?
(this.redisPlayerCount == null ? new RedisPlayerCount(this.interval) : this.redisPlayerCount) :
(this.redisPlayerCount != null ? (this.redisPlayerCount.cancel(), null) : null);
if (hasRedis) {
this.redisPlayerCount = this.redisPlayerCount == null ?
new RedisPlayerCount(this.interval) :
this.redisPlayerCount;
} else {
if (this.redisPlayerCount != null) {
this.redisPlayerCount.cancel();
this.redisPlayerCount = null;
}
}
}
public void unload() {