diff --git a/plugins/command.js b/plugins/command.js index bd2c950..5550b50 100755 --- a/plugins/command.js +++ b/plugins/command.js @@ -54,13 +54,15 @@ module.exports={ let usage=getMessage(lang,`command.${cmd}.usage`); let desc=getMessage(lang,`command.${cmd}.desc`); if(cmds[cmd].usage){ - usage=cmds[cmd].usage; + usage=cmds[cmd].usage.split("||"); } if(cmds[cmd].desc){ desc=cmds[cmd].desc; } //b.tellraw(uuid,{"text":getMessage(lang,"command.help.commandInfo",[cmd,usage,desc])}); - b.tellraw(uuid,{"text":getMessage(lang,"command.help.commandUsage",[cmd,usage,desc])}); + for(const i in usage){ + b.tellraw(uuid,{"text":getMessage(lang,"command.help.commandUsage",[cmd,usage[i]])}); + } b.tellraw(uuid,{"text":getMessage(lang,"command.help.commandDesc",[desc])}); const permsN=getMessage(lang,"command.help.permsNormal"); const permsT=getMessage(lang,"command.help.permsTrusted"); diff --git a/util/ConsoleCommand.js b/util/ConsoleCommand.js index 6ab86f6..fcd3db8 100644 --- a/util/ConsoleCommand.js +++ b/util/ConsoleCommand.js @@ -27,12 +27,14 @@ class ConsoleCommand{ let usage=getMessage(lang,`command.${cmd}.usage`); let desc=getMessage(lang,`command.${cmd}.desc`); if(cmds[cmd].usage){ - usage=cmds[cmd].usage; + usage=cmds[cmd].usage.split("||"); } if(cmds[cmd].desc){ desc=cmds[cmd].desc; } - console.log({"text":getMessage(lang,"command.help.commandUsage",[cmd,usage,desc])}); + for(const i in usage){ + console.log({"text":getMessage(lang,"command.help.commandUsage",[cmd,usage[i]])}); + } console.log({"text":getMessage(lang,"command.help.commandDesc",[desc])}); const permsN=getMessage(lang,"command.help.permsNormal"); const permsT=getMessage(lang,"command.help.permsTrusted");