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:

View File

@ -1,6 +1,6 @@
from __future__ import annotations
__version__ = "2.1.1"
__version__ = "2.1.2"
_version_tuple = tuple(int(piece, 10) for piece in __version__.split("."))
import os