forked from cswimr/SeaCogs
fix(pterodactyl): fixed [pterodactyl players]
command
This commit is contained in:
parent
6ec79c9f92
commit
50d1d7900b
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class Pterodactyl(commands.Cog):
|
|||
if await config.api_endpoint() == "minecraft":
|
||||
status, response = await mcsrvstatus.get_status(await config.topic_hostname(), await config.topic_port())
|
||||
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 None
|
||||
|
||||
|
|
Loading…
Reference in a new issue