From e03841794bc4acd9b1c614fbeb17de1bbdacd9e7 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 4 Jan 2021 22:41:18 +0100 Subject: [PATCH] Add Client warning when forfeit is set to automatic and client can't send required information --- MultiServer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MultiServer.py b/MultiServer.py index 84978f4c..e9d55490 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -400,6 +400,13 @@ async def on_client_joined(ctx: Context, client: Client): ctx.notify_all( f"{ctx.get_aliased_name(client.team, client.slot)} (Team #{client.team + 1}) has joined the game. " f"Client({version_str}), {client.tags}).") + if client.version < [2, 1, 0] and "auto" in ctx.forfeit_mode: + ctx.notify_client( + client, + "Your client is too old to send game beaten information. " + "The automatic forfeit feature will not work." + ) + ctx.client_connection_timers[client.team, client.slot] = datetime.datetime.now(datetime.timezone.utc) async def on_client_left(ctx: Context, client: Client):