diff --git a/src/main/java/com/nexia/core/listeners/nexus/PlayerRespawnListener.java b/src/main/java/com/nexia/core/listeners/nexus/PlayerRespawnListener.java index f316fbb2..92d67f49 100644 --- a/src/main/java/com/nexia/core/listeners/nexus/PlayerRespawnListener.java +++ b/src/main/java/com/nexia/core/listeners/nexus/PlayerRespawnListener.java @@ -60,8 +60,14 @@ public void registerListener() { player.getInventory().clear(); LobbyUtil.giveItems(player); + Location respawn = new Location(0,80, 0, WorldUtil.getWorld(duelsGame.level)); + + if(duelsGame.winner != null) { + respawn = duelsGame.winner.getLocation(); + } + respawnEvent.setRespawnMode(Minecraft.GameMode.SPECTATOR); - respawnEvent.setSpawnpoint(duelsGame.winner.getLocation()); + respawnEvent.setSpawnpoint(respawn); } else if(teamDuelsGame != null && duelsData.duelOptions.duelsTeam != null) { player.getInventory().clear(); LobbyUtil.giveItems(player);