mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Posting a message to the tornament panel, if a player submits his deck.
This commit is contained in:
parent
3572cbdc87
commit
c924ca8727
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue