mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix bukkit and downstream fork MOTD crash
This commit is contained in:
parent
1d32afa09d
commit
a67f53a4c9
@ -34,8 +34,13 @@ class Server:
|
||||
lines = []
|
||||
|
||||
description = self.description
|
||||
if "text" in description.keys():
|
||||
lines.append(description["text"])
|
||||
if "extra" in description.keys():
|
||||
for e in description["extra"]:
|
||||
if not isinstance(e, dict):
|
||||
lines.append(e)
|
||||
continue
|
||||
# Conversion format code needed only for Java Version
|
||||
lines.append(get_code_format("reset"))
|
||||
if "bold" in e.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user