fixed bug of getting motd
This commit is contained in:
parent
c0b26f1fe0
commit
b3f9e7c8d9
|
@ -176,6 +176,8 @@ class AIOMCServer(IMCServer):
|
||||||
self.clean()
|
self.clean()
|
||||||
self._name = data["version"]["name"]
|
self._name = data["version"]["name"]
|
||||||
self._motd = data["description"]
|
self._motd = data["description"]
|
||||||
|
if isinstance(self._motd, dict):
|
||||||
|
self._motd = self._motd["text"]
|
||||||
players = data["players"]
|
players = data["players"]
|
||||||
self._count = int(players["online"])
|
self._count = int(players["online"])
|
||||||
self._max = int(players["max"])
|
self._max = int(players["max"])
|
||||||
|
|
Loading…
Reference in New Issue