From 217f412c39f7f06662a22f2608dc625a18e1d5e1 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 18 May 2022 21:51:20 -0400 Subject: [PATCH] 1.5.0 Release Canidate 2.1 --- .../hideAndSeek/game/listener/DamageHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java b/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java index 086a48a..68fa84c 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/game/listener/DamageHandler.java @@ -93,6 +93,9 @@ public class DamageHandler implements Listener { } // Teleport player to seeker spawn player.teleport(new Location(Bukkit.getWorld(game.getGameWorld()), spawnPosition.getX(), spawnPosition.getY(), spawnPosition.getZ())); + // Add leaderboard stats + board.addDeath(player.getUniqueId()); + if (attacker != null) board.addKill(attacker.getUniqueId()); // Broadcast player death message if (board.isSeeker(player)) { game.broadcastMessage(message("GAME_PLAYER_DEATH").addPlayer(player).toString()); @@ -104,9 +107,6 @@ public class DamageHandler implements Listener { } board.addSeeker(player); } - // Add leaderboard stats - board.addDeath(player.getUniqueId()); - if (attacker != null) board.addKill(attacker.getUniqueId()); //Reload player PlayerLoader.resetPlayer(player, board); board.reloadBoardTeams();