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); }