mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
add step name to message
This commit is contained in:
parent
f073ee299d
commit
7df6bb8db6
1 changed files with 5 additions and 2 deletions
|
@ -481,7 +481,10 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
|
||||
private void informOthers(UUID playerId) throws MageException {
|
||||
final String message = "Waiting for " + game.getPlayer(playerId).getName();
|
||||
String message = "";
|
||||
if (game.getStep() != null)
|
||||
message += game.getStep().getType().toString() + " - ";
|
||||
message += "Waiting for " + game.getPlayer(playerId).getName();
|
||||
for (final Entry<UUID, GameSession> entry: gameSessions.entrySet()) {
|
||||
if (!entry.getKey().equals(playerId)) {
|
||||
entry.getValue().inform(message);
|
||||
|
@ -494,7 +497,7 @@ public class GameController implements GameCallback {
|
|||
|
||||
private void informOthers(List<UUID> players) throws MageException {
|
||||
// first player is always original controller
|
||||
final String message = "Waiting for " + game.getPlayer(players.get(0)).getName();
|
||||
final String message = game.getStep().toString() + " - Waiting for " + game.getPlayer(players.get(0)).getName();
|
||||
for (final Entry<UUID, GameSession> entry: gameSessions.entrySet()) {
|
||||
boolean skip = false;
|
||||
for (UUID uuid : players) {
|
||||
|
|
Loading…
Reference in a new issue