1.5.0 Release Canidate 2.1
This commit is contained in:
parent
e79c4ad1c5
commit
217f412c39
1 changed files with 3 additions and 3 deletions
|
@ -93,6 +93,9 @@ public class DamageHandler implements Listener {
|
||||||
}
|
}
|
||||||
// Teleport player to seeker spawn
|
// Teleport player to seeker spawn
|
||||||
player.teleport(new Location(Bukkit.getWorld(game.getGameWorld()), spawnPosition.getX(), spawnPosition.getY(), spawnPosition.getZ()));
|
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
|
// Broadcast player death message
|
||||||
if (board.isSeeker(player)) {
|
if (board.isSeeker(player)) {
|
||||||
game.broadcastMessage(message("GAME_PLAYER_DEATH").addPlayer(player).toString());
|
game.broadcastMessage(message("GAME_PLAYER_DEATH").addPlayer(player).toString());
|
||||||
|
@ -104,9 +107,6 @@ public class DamageHandler implements Listener {
|
||||||
}
|
}
|
||||||
board.addSeeker(player);
|
board.addSeeker(player);
|
||||||
}
|
}
|
||||||
// Add leaderboard stats
|
|
||||||
board.addDeath(player.getUniqueId());
|
|
||||||
if (attacker != null) board.addKill(attacker.getUniqueId());
|
|
||||||
//Reload player
|
//Reload player
|
||||||
PlayerLoader.resetPlayer(player, board);
|
PlayerLoader.resetPlayer(player, board);
|
||||||
board.reloadBoardTeams();
|
board.reloadBoardTeams();
|
||||||
|
|
Loading…
Reference in a new issue