fix: 修复自动化命令参数错误

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2022-04-02 15:02:21 +08:00
parent 1b0ea9fa05
commit db526e9444
2 changed files with 3 additions and 2 deletions

View File

@ -56,8 +56,9 @@ export class PluginCommandManager {
let cmdKey = 'cmd' + subcommand
let subcommandexec = pluginInstance[cmdKey]
if (!subcommandexec) {
args.shift()
subcommandexec = pluginInstance['cmdmain']
} else {
args.shift()
}
if (!subcommandexec) {
subcommand && pluginInstance.logger.sender(sender, '§4未知的子命令: §c' + subcommand)