warn older client versions that features are missing

This commit is contained in:
Fabian Dill
2020-04-28 05:59:03 +02:00
parent 495254addf
commit 00da5dfd65
2 changed files with 7 additions and 1 deletions

View File

@@ -553,6 +553,9 @@ class ClientMessageProcessor(CommandProcessor):
self.output(
"Sorry, client forfeiting requires you to have beaten the game on this server."
" You can ask the server admin for a /forfeit")
if self.client.version < [2, 1, 0]:
self.output(
"Your client is too old to send game beaten information. Please update, load you savegame and reconnect.")
return False
def _cmd_remaining(self) -> bool:
@@ -581,6 +584,9 @@ class ClientMessageProcessor(CommandProcessor):
else:
self.output(
"Sorry, !remaining requires you to have beaten the game on this server")
if self.client.version < [2, 1, 0]:
self.output(
"Your client is too old to send game beaten information. Please update, load you savegame and reconnect.")
return False
def _cmd_countdown(self, seconds: str = "10") -> bool: