diff --git a/src/main/java/me/stefan923/superlms/listeners/PlayerDeathListener.java b/src/main/java/me/stefan923/superlms/listeners/PlayerDeathListener.java index 3a539c8..f35d0da 100644 --- a/src/main/java/me/stefan923/superlms/listeners/PlayerDeathListener.java +++ b/src/main/java/me/stefan923/superlms/listeners/PlayerDeathListener.java @@ -26,7 +26,9 @@ public void onPlayerDeath(final PlayerDeathEvent event) { player.spigot().respawn(); event.setDeathMessage(null); - instance.getGameManager().broadcastInGame(formatAll(instance.getLanguageManager().getConfig().getString("Game.Player Died").replace("%player_name%", player.getName()))); + instance.getGameManager().broadcastInGame(formatAll(instance.getLanguageManager().getConfig().getString("Game.Player Died") + .replace("%player_name%", player.getName()) + .replace("%current_count%", String.valueOf(instance.getPlayers().size())))); } } diff --git a/src/main/java/me/stefan923/superlms/listeners/PlayerQuitListener.java b/src/main/java/me/stefan923/superlms/listeners/PlayerQuitListener.java index c3d7258..9628b71 100644 --- a/src/main/java/me/stefan923/superlms/listeners/PlayerQuitListener.java +++ b/src/main/java/me/stefan923/superlms/listeners/PlayerQuitListener.java @@ -25,7 +25,9 @@ public void onPlayerQuit(final PlayerQuitEvent event) { GameStatus gameStatus = instance.getGameManager().getStatus(); if (gameStatus.equals(GameStatus.GRACE) || gameStatus.equals(GameStatus.STARTED)) { - instance.getGameManager().broadcastInGame(formatAll(instance.getLanguageManager().getConfig().getString("Game.Player Died").replace("%player_name%", player.getName()))); + instance.getGameManager().broadcastInGame(formatAll(instance.getLanguageManager().getConfig().getString("Game.Player Died") + .replace("%player_name%", player.getName()) + .replace("%current_count%", String.valueOf(instance.getPlayers().size())))); } }