Commit 4a026481 authored by jiahua.liu's avatar jiahua.liu

fix typo

parent e42d7ff7
...@@ -37,7 +37,7 @@ object CommandManager { ...@@ -37,7 +37,7 @@ object CommandManager {
val allNames = mutableListOf(command.name).also { it.addAll(command.alias) } val allNames = mutableListOf(command.name).also { it.addAll(command.alias) }
allNames.forEach { allNames.forEach {
if (registeredCommand.containsKey(it)) { 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 { allNames.forEach {
...@@ -214,7 +214,7 @@ class CommandBuilder internal constructor() { ...@@ -214,7 +214,7 @@ class CommandBuilder internal constructor() {
fun register(): Command { fun register(): Command {
if (name == null || onCommand == null) { if (name == null || onCommand == null) {
error("net.mamoe.mirai.CommandBuilder not complete") error("CommandBuilder not complete")
} }
if (alias == null) { if (alias == null) {
alias = listOf() alias = listOf()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment