forked from cswimr/SeaCogs
fix(pterodactyl): pylint fix
This commit is contained in:
parent
9f6e960a25
commit
6ec79c9f92
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +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 = ''
|
output_str = str.join(response['players']['list'], '\n')
|
||||||
for player in response['players']['list']:
|
|
||||||
output_str += f"{player}\n"
|
|
||||||
return output_str, response['players']['list']
|
return output_str, response['players']['list']
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue