new CommandSender

This commit is contained in:
jiahua.liu 2020-04-10 17:18:27 +08:00
parent 6607952eb5
commit 6a9f5ec11e
3 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@ import org.gradle.kotlin.dsl.DependencyHandlerScope
object Versions { object Versions {
object Mirai { object Mirai {
const val core = "0.34.0" const val core = "0.34.0"
const val console = "0.4.7" const val console = "0.4.8"
const val consoleGraphical = "0.0.6" const val consoleGraphical = "0.0.7"
const val consoleWrapper = "0.2.0" const val consoleWrapper = "0.2.0"
} }

View File

@ -28,7 +28,6 @@ interface CommandSender {
suspend fun sendMessage(messageChain: Message) suspend fun sendMessage(messageChain: Message)
suspend fun sendMessage(message: String) suspend fun sendMessage(message: String)
/** /**
* 写入要发送的内容 所有内容最后会被以一条发出 * 写入要发送的内容 所有内容最后会被以一条发出
*/ */

View File

@ -128,6 +128,7 @@ object PluginManager {
val res = it.inputStream.use { input -> val res = it.inputStream.use { input ->
input.readBytes().encodeToString() input.readBytes().encodeToString()
} }
// 关闭jarFile解决热更新插件问题 // 关闭jarFile解决热更新插件问题
(it as JarURLConnection).jarFile.close() (it as JarURLConnection).jarFile.close()
res res