From 6ec79c9f920594b6e28a1afa4533e9df77f83922 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 23 Mar 2024 14:59:20 +0000 Subject: [PATCH] fix(pterodactyl): pylint fix --- pterodactyl/pterodactyl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 65b9bf7..c068c65 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -145,9 +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 = '' - for player in response['players']['list']: - output_str += f"{player}\n" + output_str = str.join(response['players']['list'], '\n') return output_str, response['players']['list'] return None