Compare commits

...

1 Commits
v0.2.1 ... main

Author SHA1 Message Date
trueold89 b3f9e7c8d9
fixed bug of getting motd 2024-07-13 20:54:52 +03:00
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"])