Skip to content

Commit 2f5c423

Browse files
committed
Fiz
1 parent ba1bc04 commit 2f5c423

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/fr/xephi/authme/service/BukkitService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ public void scheduleSyncDelayedTask(Runnable task) {
6868
* @param delay Delay in server ticks before executing task
6969
*/
7070
public void scheduleSyncDelayedTask(Runnable task, long delay) {
71-
runTaskLater(task, delay);
71+
if (IS_FOLIA) {
72+
runTaskLater(task, delay);
73+
} else {
74+
Bukkit.getScheduler().runTaskLater(authMe, task, delay); // We must do this to keep compatibility
75+
}
7276
}
7377

7478
/**

0 commit comments

Comments
 (0)