From 291a3ecc058472f9ee08207e960b155af2ef39f9 Mon Sep 17 00:00:00 2001 From: beu Date: Mon, 14 Jul 2025 10:32:11 +0200 Subject: [PATCH] fix commands check --- core/Server/Commands.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Server/Commands.php b/core/Server/Commands.php index de9711bd..77f65221 100644 --- a/core/Server/Commands.php +++ b/core/Server/Commands.php @@ -192,7 +192,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer $extension = 10; - $params = explode(' ', $chat[1][2]); + $params = explode(' ', trim($callback[1][2])); if (count($params) >= 2) { $extension = $params[1]; } @@ -331,7 +331,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer return; } // Check for delayed shutdown - $params = explode(' ', $chat[1][2]); + $params = explode(' ', trim($chat[1][2])); if (count($params) < 2) { $this->shutdownServer($player->login); return; @@ -378,7 +378,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer return; } - $params = explode(' ', $chat[1][2], 2); + $params = explode(' ', trim($chat[1][2]), 2); if (count($params) < 2) { $message = $this->maniaControl->getChat()->formatMessage( 'Usage example: %s',