fix(pterodactyl): fixed [pterodactyl players] command

This commit is contained in:
Seaswimmer 2024-03-23 15:02:46 +00:00
parent 6ec79c9f92
commit 50d1d7900b
Signed by: CoastalCommitsManagement
GPG key ID: 7E73189F651A553F

View file

@ -145,7 +145,7 @@ class Pterodactyl(commands.Cog):
if await config.api_endpoint() == "minecraft": if await config.api_endpoint() == "minecraft":
status, response = await mcsrvstatus.get_status(await config.topic_hostname(), await config.topic_port()) status, response = await mcsrvstatus.get_status(await config.topic_hostname(), await config.topic_port())
if status and 'list' in response['players']: if status and 'list' in response['players']:
output_str = str.join(response['players']['list'], '\n') output_str = '\n'.join(response['players']['list'])
return output_str, response['players']['list'] return output_str, response['players']['list']
return None return None