diff --git a/src/TowerRun.properties b/src/TowerRun.properties index 16cd5de..96fd093 100644 --- a/src/TowerRun.properties +++ b/src/TowerRun.properties @@ -20,6 +20,7 @@ PREFIX=§eTowerRun§8»§r PLAYER_DIED=§c{0} §7died§8! +PLAYER_ESCAPE=§a{0} §7escaped§8! GAME_START=§aThe game has started§8! GAME_WIN=§a{0} §7has won the game§8! GAME_STARTING=§7Starting: §e{0}s§8! diff --git a/src/TowerRun_de.properties b/src/TowerRun_de.properties index 42c4d1d..0af02df 100644 --- a/src/TowerRun_de.properties +++ b/src/TowerRun_de.properties @@ -18,6 +18,7 @@ # PLAYER_DIED=§c{0} §7ist gestorben§8! +PLAYER_ESCAPE=§a{0} §7ist entkommen§8! GAME_START=§aDas Spiel beginnt§8! GAME_WIN=§a{0} §7hat das Spiel gewonnen§8! GAME_STARTING=§7Das Spiel startet in §e{0}s§8! diff --git a/src/de/steamwar/towerrun/winconditions/OutsideWincondition.java b/src/de/steamwar/towerrun/winconditions/OutsideWincondition.java index 3c34324..b148a26 100644 --- a/src/de/steamwar/towerrun/winconditions/OutsideWincondition.java +++ b/src/de/steamwar/towerrun/winconditions/OutsideWincondition.java @@ -19,6 +19,7 @@ package de.steamwar.towerrun.winconditions; +import de.steamwar.towerrun.TowerRun; import de.steamwar.towerrun.config.WorldConfig; import de.steamwar.towerrun.game.TowerRunGame; import de.steamwar.towerrun.game.TowerRunPlayer; @@ -63,5 +64,6 @@ public abstract class OutsideWincondition extends WinCondition { TowerRunGame.PLAYERS_ESCAPED.add(towerRunPlayer); TowerRunGame.PLAYERS_ALIVE.remove(towerRunPlayer); towerRunPlayer.player().setGameMode(GameMode.SPECTATOR); + TowerRun.getMessage().broadcast("PLAYER_ESCAPE", towerRunPlayer.player().getName()); } }