From a7c7a8e17cf1c0bf295ecb19970990bde5d20022 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 15 Jul 2023 18:32:55 -0400 Subject: [PATCH] moved new_put_data --- pterodactyl/ptero.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index da7d159..3adcf3f 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -75,19 +75,19 @@ class Pterodactyl(commands.Cog): "value": startup_jar } ] + new_put_data = [ + { + "key": "FLAGS", + "value": old_startup_args[1] + }, + { + "key": "SERVER_JARFILE", + "value": old_startup_args[0] + } + ] if response_dict['attributes']['current_state'] == "offline": for data in put_data: await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data) - new_put_data = [ - { - "key": "FLAGS", - "value": old_startup_args[1] - }, - { - "key": "SERVER_JARFILE", - "value": old_startup_args[0] - } - ] requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"}) await interaction_message.edit(content="Packwiz installer started...") await asyncio.sleep(1)