Fix command help param count issue
This commit is contained in:
@@ -127,7 +127,7 @@ function helpCommand(command, params, client) {
|
|||||||
|
|
||||||
case "command":
|
case "command":
|
||||||
case "cmd":
|
case "cmd":
|
||||||
if(areThereEnoughParams(params, 2, " ")) {
|
if(splitParams.length >= 2) {
|
||||||
showCommandHelpMessage(client, splitParams[2]);
|
showCommandHelpMessage(client, splitParams[2]);
|
||||||
} else {
|
} else {
|
||||||
showCommandHelpMessage(client, false);
|
showCommandHelpMessage(client, false);
|
||||||
@@ -322,7 +322,7 @@ function showClanHelpMessage(client) {
|
|||||||
|
|
||||||
function showCommandHelpMessage(client, commandName) {
|
function showCommandHelpMessage(client, commandName) {
|
||||||
if(!commandName) {
|
if(!commandName) {
|
||||||
messagePlayerSyntax(client, `${getCommandSyntaxText("help")} command <command name>`);
|
messagePlayerSyntax(client, `${getCommandSyntaxText("help")}command <command name>`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user