Posting a message to the tornament panel, if a player submits his deck.

This commit is contained in:
LevelX2 2013-06-29 20:50:56 +02:00
parent 3572cbdc87
commit c924ca8727

View file

@ -229,6 +229,10 @@ public class TournamentController {
public void submitDeck(UUID playerId, Deck deck) {
if (tournamentSessions.containsKey(playerId)) {
tournamentSessions.get(playerId).submitDeck(deck);
TournamentPlayer player = tournament.getPlayer(playerId);
if (player != null) {
ChatManager.getInstance().broadcast(chatId, "", player.getPlayer().getName() + " has submitted the deck", MessageColor.BLACK);
}
}
}