From c5a25b4fcb307a02e5dd746d05c859abf0ffa4a7 Mon Sep 17 00:00:00 2001 From: Mark Benson Date: Sat, 30 Sep 2023 01:40:50 +0100 Subject: [PATCH] Player joins as side msg shared to all. --- .../src/main/java/VASSAL/build/module/PlayerRoster.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java index 7f7ff90dcf..f79c608ad6 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java +++ b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java @@ -496,6 +496,8 @@ public void finish() { if (GameModule.getGameModule().isMultiplayerConnected()) { final Command c = new Chatter.DisplayText(GameModule.getGameModule().getChatter(), Resources.getString(GlobalOptions.getInstance().chatterHTMLSupport() ? "PlayerRoster.joined_side_2" : "PlayerRoster.joined_side", GameModule.getGameModule().getPrefs().getValue(GameModule.REAL_NAME), translateSide(newSide))); c.execute(); + GameModule.getGameModule().getServer().sendToOthers(c); + } final Add a = new Add(this, GameModule.getActiveUserId(), GlobalOptions.getInstance().getPlayerId(), newSide); @@ -1149,4 +1151,4 @@ public void validate(Buildable target, ValidationReport report) { } } } -} +} \ No newline at end of file