Skip to content

Commit 0c65e84

Browse files
committed
Update BungeeCordTaskScheduler with ms
1 parent 1bed85c commit 0c65e84

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bungeecord/src/main/java/it/renvins/serverpulse/bungeecord/scheduler/BungeeCordTaskScheduler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ public void runAsync(Runnable task) {
1818
}
1919

2020
@Override
21-
public Task runTaskTimerAsync(Runnable task, long delayTicks, long periodTicks) {
22-
long delayMs = delayTicks * 50L; // 20 ticks/second = 50ms per tick
23-
long periodMs = periodTicks * 50L;
24-
21+
public Task runTaskTimerAsync(Runnable task, long delayMs, long periodMs) {
2522
return new BungeeCordTaskWrapper(
2623
plugin.getProxy().getScheduler().schedule(plugin, task, delayMs, periodMs, TimeUnit.MILLISECONDS));
2724
}

0 commit comments

Comments
 (0)