Skip to content

Commit 7385d2e

Browse files
committed
Quickly patch minecraft_status
1 parent e62da4a commit 7385d2e

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

plugins/minecraft_status.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ def mcstatus():
3232

3333
if green:
3434
green.sort()
35-
out = "\x033\x02Online\x02\x0f: " + ", ".join(green)
36-
if yellow:
37-
out += " "
35+
out.append("\x02Online\x02: " + ", ".join(green))
3836
if yellow:
3937
yellow.sort()
40-
out += "\x02Issues\x02: " + ", ".join(yellow)
41-
if red:
42-
out += " "
38+
out.append("\x02Issues\x02: " + ", ".join(yellow))
4339
if red:
4440
red.sort()
45-
out += "\x034\x02Offline\x02\x0f: " + ", ".join(red)
41+
out.append("\x02Offline\x02: " + ", ".join(red))
42+
43+
out = " ".join(out)
4644

4745
return "\x0f" + out.replace(".mojang.com", ".mj") \
4846
.replace(".minecraft.net", ".mc")

0 commit comments

Comments
 (0)