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