diff --git a/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java b/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java index de5a807..afc3a80 100644 --- a/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java +++ b/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java @@ -25,13 +25,9 @@ public class RespawnRunnable extends BukkitRunnable { private final int startingTime; private int respawnTime; - private boolean isInGame(PlayerData playerData) { - return playerData.getPlayerState() == PlayerState.PLAYING; - } - @Override public void run() { - if (!this.isInGame(this.playerData)) { + if (!this.player.isOnline()) { cancel(); return; }