1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-01 02:21:43 +02:00

Improve AbstractJavaScheduler (#3326)

This commit is contained in:
Luck
2022-03-19 23:30:31 +00:00
parent 405c5c3cf9
commit fb56189f0a
4 changed files with 53 additions and 48 deletions

View File

@@ -34,6 +34,7 @@ public class BukkitSchedulerAdapter extends AbstractJavaScheduler implements Sch
private final Executor sync;
public BukkitSchedulerAdapter(LPBukkitBootstrap bootstrap) {
super(bootstrap);
this.sync = r -> bootstrap.getServer().getScheduler().scheduleSyncDelayedTask(bootstrap.getLoader(), r);
}