fix(pterodactyl): fixed player fetching api error

This commit is contained in:
Seaswimmer 2024-03-15 19:26:15 -04:00
parent 014025f547
commit 39808f1766
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -143,7 +143,7 @@ class Pterodactyl(commands.Cog):
if status and 'list' in response['players']: if status and 'list' in response['players']:
output_str = '' output_str = ''
for player in response['players']['list']: for player in response['players']['list']:
output_str += f"{player['name']}\n" output_str += f"{player}\n"
return output_str, response['players']['list'] return output_str, response['players']['list']
return None return None