diff --git a/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java b/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java index 4505c67..ef49f70 100644 --- a/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java +++ b/src/main/java/rip/tilly/bedwars/runnables/RespawnRunnable.java @@ -31,6 +31,10 @@ public class RespawnRunnable extends BukkitRunnable { cancel(); return; } + if (this.playerData.getPlayerState() != PlayerState.RESPAWNING || this.playerData.getPlayerState() != PlayerState.PLAYING) { + cancel(); + return; + } if (this.respawnTime <= 1) { this.playerData.setPlayerState(PlayerState.PLAYING);