mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 22:30:47 +08:00
fix typo
This commit is contained in:
parent
e42d7ff7a1
commit
4a02648102
@ -37,7 +37,7 @@ object CommandManager {
|
||||
val allNames = mutableListOf(command.name).also { it.addAll(command.alias) }
|
||||
allNames.forEach {
|
||||
if (registeredCommand.containsKey(it)) {
|
||||
error("net.mamoe.mirai.Command Name(or Alias) $it is already registered, consider if same function plugin was installed")
|
||||
error("Command Name(or Alias) $it is already registered, consider if same functional plugin was installed")
|
||||
}
|
||||
}
|
||||
allNames.forEach {
|
||||
@ -214,7 +214,7 @@ class CommandBuilder internal constructor() {
|
||||
|
||||
fun register(): Command {
|
||||
if (name == null || onCommand == null) {
|
||||
error("net.mamoe.mirai.CommandBuilder not complete")
|
||||
error("CommandBuilder not complete")
|
||||
}
|
||||
if (alias == null) {
|
||||
alias = listOf()
|
||||
|
Loading…
Reference in New Issue
Block a user