From f8a71e7906ac1739ba858ace959cd50beb0d0f49 Mon Sep 17 00:00:00 2001 From: Debian Date: Fri, 18 Sep 2026 13:32:49 +0200 Subject: [PATCH] Render locally what rcon say broadcasts print on the server Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 6199b24..84b9f18 100644 --- a/main.py +++ b/main.py @@ -349,6 +349,13 @@ def handle_user_input(ui, rcon): rcon.send_command(command) + # The server does not echo rcon-originated says back on the console + # stream, so render locally what players see in-game + stripped = command.strip() + if stripped.lower().startswith('say '): + timestamp = time.strftime('%H:%M:%S') + ui.print_message(f"^3[^7{timestamp}^3]^7 Server: {stripped[4:]}\n") + def handle_stats_stream(stats_conn, stats_check_counter, event_parser, ui, game_state): """Poll and process stats stream events"""