From 25b26322d20b3b428a6ed46a4c42d9c8752a7808 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 11 Mar 2024 14:20:30 -0400 Subject: [PATCH] fix(pterodactyl): allow killing the server while it's starting or stopping --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index ba8c80a..40fa293 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -111,7 +111,7 @@ class Pterodactyl(commands.Cog): return await ctx.response.send_message(f"Server is already {action_ing}.", ephemeral=True) return await ctx.send(f"Server is already {action_ing}.") - if current_status in ["starting", "stopping"]: + if current_status in ["starting", "stopping"] and action != "kill": if isinstance(ctx, discord.Interaction): return await ctx.response.send_message("Another power action is already in progress.", ephemeral=True) return await ctx.send("Another power action is already in progress.")