From db504dd6baf3e9d9bb1ea937056e38bf3337fadb Mon Sep 17 00:00:00 2001 From: RoinujNosde Date: Sun, 3 Sep 2023 22:02:50 -0300 Subject: [PATCH] fix: possibly fixes respawn screen bug --- .../titansbattle/games/EliminationTournamentGame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/roinujnosde/titansbattle/games/EliminationTournamentGame.java b/src/main/java/me/roinujnosde/titansbattle/games/EliminationTournamentGame.java index 8bca0263..b92f71d5 100644 --- a/src/main/java/me/roinujnosde/titansbattle/games/EliminationTournamentGame.java +++ b/src/main/java/me/roinujnosde/titansbattle/games/EliminationTournamentGame.java @@ -153,7 +153,7 @@ private void processLeavingDuringSemiFinals(@NotNull Warrior warrior) { if (player == null) return; waitingThirdPlace.add(warrior); - Bukkit.getScheduler().runTask(plugin, () -> player.spigot().respawn()); + Bukkit.getScheduler().runTaskLater(plugin, () -> player.spigot().respawn(), 1L); } private void processNotCurrentDuelistLeaving(@NotNull Warrior warrior, List duelLosers) {