Update GameManager

This commit is contained in:
TDSTOS
2026-03-25 18:32:28 +01:00
parent 237ce56614
commit 39622672bd
2 changed files with 4 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ class GameManager(
setGameState( GameState.STARTING ) setGameState( GameState.STARTING )
timer = lobbyTime timer = lobbyTime
} }
else Bukkit.getOnlinePlayers().forEach {
it.sendMsg( "game.lobby-idle", "current" to Bukkit.getOnlinePlayers().size.toString(), "min" to minPlayers.toString() )
}
} }
GameState.STARTING -> GameState.STARTING ->

View File

@@ -9,6 +9,7 @@ default:
game: game:
join: '<prefix><green><name></green> <gray>has joined the game.</gray>' join: '<prefix><green><name></green> <gray>has joined the game.</gray>'
quit: '<prefix><red><name></red> <gray>has quit the game.</gray>' quit: '<prefix><red><name></red> <gray>has quit the game.</gray>'
lobby-idle: '<prefix><gray>Waiting for more players... (<current> / <min>)</gray>'
start-aborted: '<prefix><red>The game start has been aborted due to the lack of players!</red>' start-aborted: '<prefix><red>The game start has been aborted due to the lack of players!</red>'
started: '<prefix><green>The game has started! Good Luck!</green>' started: '<prefix><green>The game has started! Good Luck!</green>'
invincibility-start: '<prefix><yellow>Invincibility has started and ends in <time> second(s)!</yellow>' invincibility-start: '<prefix><yellow>Invincibility has started and ends in <time> second(s)!</yellow>'