From 3fdcc1f2f3f40bb7f2512604b2522742455a34a0 Mon Sep 17 00:00:00 2001 From: Martindev Date: Sun, 20 Nov 2022 13:01:12 +0100 Subject: [PATCH] Update PterodactylServerType.php --- src/Pterodactyl/PterodactylServerType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pterodactyl/PterodactylServerType.php b/src/Pterodactyl/PterodactylServerType.php index 40a7b9b..008366b 100644 --- a/src/Pterodactyl/PterodactylServerType.php +++ b/src/Pterodactyl/PterodactylServerType.php @@ -154,7 +154,7 @@ public function createAccount(OrderItem $item): string $password = Str::randomStr(10); $createUser = $this->makeAccount($user, $item->getServer(), $password); - if ($createUser->status() != 200){ + if ($createUser->status() != 201){ return "Cannot create pterodactyl user"; } $result = $createUser->data()->attributes;