Fiz
This commit is contained in:
parent
ba1bc04b9c
commit
2f5c423e53
@ -68,7 +68,11 @@ public class BukkitService implements SettingsDependent {
|
|||||||
* @param delay Delay in server ticks before executing task
|
* @param delay Delay in server ticks before executing task
|
||||||
*/
|
*/
|
||||||
public void scheduleSyncDelayedTask(Runnable task, long delay) {
|
public void scheduleSyncDelayedTask(Runnable task, long delay) {
|
||||||
|
if (IS_FOLIA) {
|
||||||
runTaskLater(task, delay);
|
runTaskLater(task, delay);
|
||||||
|
} else {
|
||||||
|
Bukkit.getScheduler().runTaskLater(authMe, task, delay); // We must do this to keep compatibility
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user