Skip to content

Commit 4f0b03a

Browse files
committed
sort
1 parent 0613453 commit 4f0b03a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/minecraft_status.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ def mcstatus():
3232
red.append(server)
3333

3434
if green:
35+
green.sort()
3536
out = "\x033\x02Online\x02\x0f: " + ", ".join(green)
3637
if yellow:
3738
out += " "
3839
if yellow:
40+
yellow.sort()
3941
out += "\x02Issues\x02: " + ", ".join(yellow)
4042
if red:
4143
out += " "
4244
if red:
45+
red.sort()
4346
out += "\x034\x02Offline\x02\x0f: " + ", ".join(red)
4447

4548
return "\x0f" + out.replace(".mojang.com", ".mj") \

0 commit comments

Comments
 (0)