fix(pterodactyl): fixed player fetching api error
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 32s

This commit is contained in:
Seaswimmer 2024-03-15 19:26:15 -04:00
parent 014025f547
commit 39808f1766
Signed by: 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