Fix compilation

This commit is contained in:
Him188 2020-09-12 19:10:41 +08:00
parent 79136a2666
commit 6ebad54856
2 changed files with 5 additions and 5 deletions

View File

@ -84,13 +84,13 @@ public interface Command {
@JvmStatic @JvmStatic
public val Command.primaryName: String public val Command.primaryName: String
get() = names[0] get() = names[0]
@JvmSynthetic
public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit =
sender.run { onCommand(args) }
} }
} }
@JvmSynthetic
public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit =
sender.onCommand(args)
/** /**
* [Command] 的基础实现 * [Command] 的基础实现
* *

View File

@ -18,7 +18,7 @@
object Versions { object Versions {
const val core = "1.2.3" const val core = "1.2.3"
const val console = "1.0-M4-dev-5" const val console = "1.0-M4-dev-7"
const val consoleGraphical = "0.0.7" const val consoleGraphical = "0.0.7"
const val consoleTerminal = "0.1.0" const val consoleTerminal = "0.1.0"
const val consolePure = console const val consolePure = console