9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-23 08:59:34 +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"); plugin.debug("Loaded " + commandConfigMap.size() + " competitions");
this.redisPlayerCount = hasRedis ? if (hasRedis) {
(this.redisPlayerCount == null ? new RedisPlayerCount(this.interval) : this.redisPlayerCount) : this.redisPlayerCount = this.redisPlayerCount == null ?
(this.redisPlayerCount != null ? (this.redisPlayerCount.cancel(), null) : null); new RedisPlayerCount(this.interval) :
this.redisPlayerCount;
} else {
if (this.redisPlayerCount != null) {
this.redisPlayerCount.cancel();
this.redisPlayerCount = null;
}
}
} }
public void unload() { public void unload() {