From 08b3bd4dc042eb1c88f97ed87cd37413883d4429 Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 11 Aug 2022 16:19:12 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Typo=20in=20clientAdmin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Classes/Pterodactyl.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Classes/Pterodactyl.php b/app/Classes/Pterodactyl.php index 7df0229e..505f3283 100644 --- a/app/Classes/Pterodactyl.php +++ b/app/Classes/Pterodactyl.php @@ -33,7 +33,7 @@ class Pterodactyl ])->baseUrl(config("SETTINGS::SYSTEM:PTERODACTYL:URL") . '/api'); } - public static function clientadmin() + public static function clientAdmin() { return Http::withHeaders([ 'Authorization' => 'Bearer ' . config("SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN"), @@ -95,7 +95,7 @@ class Pterodactyl if ($response->failed()) throw self::getException("Failed to get nodes from pterodactyl - ", $response->status()); return $response->json()['data']; } - + /** * @return mixed * @throws Exception @@ -110,8 +110,8 @@ class Pterodactyl if($response->failed()) throw self::getException("Failed to get node id " . $id . " - " . $response->status()); return $response->json()['attributes']; } - - + + public static function getServers() { try { @@ -328,7 +328,7 @@ class Pterodactyl public static function powerAction(Server $server, $action) { - return self::clientadmin()->post("/client/servers/{$server->identifier}/power", [ + return self::clientAdmin()->post("/client/servers/{$server->identifier}/power", [ "signal" => $action ]); }