mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 07:34:57 +00:00
Update server_commands.py
This commit is contained in:
parent
c45f68999e
commit
73b08a360d
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ class ServerCommands(commands.Cog):
|
|||
entries.append(format_list_entry(em, json[rank], f'{" ".join(rank_fixed)}'))
|
||||
|
||||
order = ['Owners', 'Executives', 'Developers', 'Senior Admins', 'Admins', 'Master Builders', 'Operators', 'Imposters']
|
||||
sorted = [tpl for x in order for tpl in entries if tpl.name == x]
|
||||
sorted = [entry for rank in order for entry in entries if entry.name == rank]
|
||||
|
||||
for x in sorted:
|
||||
em.add_field(name=f'{x.name} ({x.playercount})', value=x.value, inline=False)
|
||||
|
|
Loading…
Reference in a new issue