From 919628b50b245af37203fbdec01e6c7a364a2015 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 6 Oct 2021 15:42:54 -0500 Subject: [PATCH] Fix command help param count issue --- scripts/server/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/help.js b/scripts/server/help.js index 68138212..d319e25d 100644 --- a/scripts/server/help.js +++ b/scripts/server/help.js @@ -127,7 +127,7 @@ function helpCommand(command, params, client) { case "command": case "cmd": - if(areThereEnoughParams(params, 2, " ")) { + if(splitParams.length >= 2) { showCommandHelpMessage(client, splitParams[2]); } else { showCommandHelpMessage(client, false); @@ -322,7 +322,7 @@ function showClanHelpMessage(client) { function showCommandHelpMessage(client, commandName) { if(!commandName) { - messagePlayerSyntax(client, `${getCommandSyntaxText("help")} command `); + messagePlayerSyntax(client, `${getCommandSyntaxText("help")}command `); return false; }