fix add admin command

This commit is contained in:
Beu 2024-11-13 16:21:39 +01:00
parent 9331e22a54
commit bfa3fdce60

View File

@ -56,7 +56,7 @@ class AuthCommands implements CommandListener, UsageInformationAble {
$text = $chatCallback[1][2]; $text = $chatCallback[1][2];
$commandParts = explode(' ', $text); $commandParts = explode(' ', $text);
if (!array_key_exists(1, $commandParts)) { if (!array_key_exists(1, $commandParts) || $commandParts[1] === "") {
$message = $this->maniaControl->getChat()->formatMessage( $message = $this->maniaControl->getChat()->formatMessage(
'Usage Example: %s %s', 'Usage Example: %s %s',
$commandParts[0], $commandParts[0],