mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
warn older client versions that features are missing
This commit is contained in:
@@ -553,6 +553,9 @@ class ClientMessageProcessor(CommandProcessor):
|
|||||||
self.output(
|
self.output(
|
||||||
"Sorry, client forfeiting requires you to have beaten the game on this server."
|
"Sorry, client forfeiting requires you to have beaten the game on this server."
|
||||||
" You can ask the server admin for a /forfeit")
|
" 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
|
return False
|
||||||
|
|
||||||
def _cmd_remaining(self) -> bool:
|
def _cmd_remaining(self) -> bool:
|
||||||
@@ -581,6 +584,9 @@ class ClientMessageProcessor(CommandProcessor):
|
|||||||
else:
|
else:
|
||||||
self.output(
|
self.output(
|
||||||
"Sorry, !remaining requires you to have beaten the game on this server")
|
"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
|
return False
|
||||||
|
|
||||||
def _cmd_countdown(self, seconds: str = "10") -> bool:
|
def _cmd_countdown(self, seconds: str = "10") -> bool:
|
||||||
|
2
Utils.py
2
Utils.py
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = "2.1.1"
|
__version__ = "2.1.2"
|
||||||
_version_tuple = tuple(int(piece, 10) for piece in __version__.split("."))
|
_version_tuple = tuple(int(piece, 10) for piece in __version__.split("."))
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
Reference in New Issue
Block a user