From dc8a9102fe48542bb9809f7191bce8d9d8910533 Mon Sep 17 00:00:00 2001 From: Rockyers Date: Sun, 13 Aug 2023 19:45:09 -0700 Subject: [PATCH] Replace Bukkit schedulers in ScoreboardWrapper.java --- .../com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java index e0d337413..93e250315 100644 --- a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java +++ b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java @@ -32,6 +32,7 @@ import org.jetbrains.annotations.NotNull; import java.util.List; import java.util.Map; +import java.util.concurrent.TimeUnit; public class ScoreboardWrapper { public static final String SIDE_OBJECTIVE = "mcMMO_sideObjective"; @@ -426,7 +427,7 @@ public class ScoreboardWrapper { NotificationManager.sendPlayerInformationChatOnlyPrefixed(player, "Scoreboard.Recovery"); initBoard(); //Start over - Bukkit.getScheduler().runTaskLater(mcMMO.p, () -> ScoreboardManager.retryLastSkillBoard(player), 0); + mcMMO.p.getFoliaLib().getImpl().runLater(() -> ScoreboardManager.retryLastSkillBoard(player), 0, TimeUnit.MILLISECONDS); } }