fixed bug of getting motd

This commit is contained in:
trueold89 2024-07-13 20:48:30 +03:00
parent c0b26f1fe0
commit b3f9e7c8d9
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ class AIOMCServer(IMCServer):
self.clean()
self._name = data["version"]["name"]
self._motd = data["description"]
if isinstance(self._motd, dict):
self._motd = self._motd["text"]
players = data["players"]
self._count = int(players["online"])
self._max = int(players["max"])