mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-12 19:30:44 +01:00
Fix CraftBukkit not working due to ping task
This commit is contained in:
parent
4800728098
commit
abeb841378
@ -30,10 +30,12 @@ public class BukkitTaskSystem extends ServerTaskSystem {
|
|||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void enable() {
|
||||||
super.enable();
|
super.enable();
|
||||||
PingCountTimer pingCountTimer = new PingCountTimer();
|
if (Check.isSpigotAvailable()) {
|
||||||
((Plan) plugin).registerListener(pingCountTimer);
|
PingCountTimer pingCountTimer = new PingCountTimer();
|
||||||
RunnableFactory.createNew("PingCountTimer", pingCountTimer)
|
((Plan) plugin).registerListener(pingCountTimer);
|
||||||
.runTaskTimer(20L, PingCountTimer.PING_INTERVAL);
|
RunnableFactory.createNew("PingCountTimer", pingCountTimer)
|
||||||
|
.runTaskTimer(20L, PingCountTimer.PING_INTERVAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user