Skip to content

Commit 167dbf1

Browse files
committed
🐛(coreLib/CommandApi) 未return导致多余的无效指令
1 parent 791f946 commit 167dbf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/coreLibrary/lib/CommandApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ open class Commands : CommandHandler, TabCompleter, CommandHandlerOld {
237237
if (arg.isEmpty()) return helpCommand.handle()
238238
val name = arg.first()
239239
with(getSub()) {
240-
getSub(name)?.handle()
240+
getSub(name)?.handle()?.let { return }
241241
}
242242
reply(
243243
"[red]无效指令\"{name}\",请使用 {prefix}help 查询".with("name" to name, "prefix" to prefix)

0 commit comments

Comments
 (0)