This commit is contained in:
HaHaWTH 2024-03-28 06:12:05 +08:00
parent ba1bc04b9c
commit 2f5c423e53

View File

@ -68,7 +68,11 @@ public class BukkitService implements SettingsDependent {
* @param delay Delay in server ticks before executing task
*/
public void scheduleSyncDelayedTask(Runnable task, long delay) {
if (IS_FOLIA) {
runTaskLater(task, delay);
} else {
Bukkit.getScheduler().runTaskLater(authMe, task, delay); // We must do this to keep compatibility
}
}
/**