From 334b46fed01dc54c4ab8b1139424c284a97db3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AiDN=E2=84=A2?= <45371311+originalaidn@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:50:32 +0200 Subject: [PATCH] Update ServerController.php fixing #93 --- app/Http/Controllers/ServerController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ServerController.php b/app/Http/Controllers/ServerController.php index 8c4d305..dc54b63 100755 --- a/app/Http/Controllers/ServerController.php +++ b/app/Http/Controllers/ServerController.php @@ -244,15 +244,15 @@ public function serverPlayerAction(Request $request) { switch ($requestType){ case "ban": if(PermissionsHelper::hasUnBanPermission()) - return $this-> executeCommand('css_ban '.$playerName.' 1440', $serverId); + return $this->executeCommand('css_ban "' . $playerName . '" 1440', $serverId); break; case "kick": if(PermissionsHelper::hasKickPermission()) - return $this->executeCommand('css_kick '.$playerName.' 1440', $serverId); + return $this->executeCommand('css_kick "' . $playerName . '"', $serverId); break; case "mute": if(PermissionsHelper::hasMutePermission()) - return $this->executeCommand('css_mute ' . $playerName.' 1440', $serverId); + return $this->executeCommand('css_mute "' . $playerName . '" 1440', $serverId); break; default: abort(403); }