This commit is contained in:
Luca
2021-11-23 19:49:46 +01:00
parent e92e1ea23f
commit b78d4d175a
2 changed files with 13 additions and 5 deletions

View File

@ -103,6 +103,10 @@ public class Game {
}));
}
public void broadcastToOneTeam(String message, GameTeam gameTeam) {
this.teams.stream().filter(team -> team == gameTeam).forEach(team -> team.playingPlayers().forEach(player -> player.sendMessage(CC.translate(message))));
}
public int decrementCountdown() {
return --this.countdown;
}