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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user