Fixed Ping Enable delay #694

This commit is contained in:
Rsl1122 2018-08-22 10:39:32 +03:00
parent 8ca16a1aa9
commit 710779e7b0

View File

@ -35,7 +35,7 @@ public class BukkitTaskSystem extends ServerTaskSystem {
try {
PingCountTimer pingCountTimer = new PingCountTimer();
((Plan) plugin).registerListener(pingCountTimer);
long startDelay = TimeAmount.SECOND.ms() * (long) Settings.PING_SERVER_ENABLE_DELAY.getNumber();
long startDelay = TimeAmount.SECOND.ticks() * (long) Settings.PING_SERVER_ENABLE_DELAY.getNumber();
RunnableFactory.createNew("PingCountTimer", pingCountTimer)
.runTaskTimer(startDelay, PingCountTimer.PING_INTERVAL);
} catch (ExceptionInInitializerError | NoClassDefFoundError ignore) {