From cbae85a53d856a5f7738a36040ccdfc96d7e5175 Mon Sep 17 00:00:00 2001 From: PeratX Date: Mon, 26 Jul 2021 17:52:11 +0800 Subject: [PATCH] Addon: release 1.2.1 --- README.md | 7 +------ build.gradle.kts | 4 ++-- src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt | 5 ++--- .../kotlin/org/itxtech/mcl/addon/logger/ConsoleLogger.kt | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ac646da..53f5e89 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,7 @@ # MCL Addon `MCL Addon` 支持在 [Mirai Console](https://github.com/mamoe/mirai-console) -中访问几乎所有 [Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader) 命令行指令,并带来更现代化的指令。 - -但大部分更改需要使用 [Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader) -重启 [Mirai Console](https://github.com/mamoe/mirai-console) 。 - -即将登陆 `Maven Central`。 +中使用 [Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader) 管理包和其他高级功能。 # 安装 diff --git a/build.gradle.kts b/build.gradle.kts index 48bd8b7..8f11675 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,8 +8,8 @@ plugins { } group = "org.itxtech" -version = "1.2.0" -description = "MCL Addon 支持在 Mirai Console 中访问几乎所有 Mirai Console Loader 命令行指令,并带来更现代化的指令。" +version = "1.2.1" +description = "在 Mirai Console 中使用MCL管理包和其他高级功能" kotlin { sourceSets { diff --git a/src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt b/src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt index a76a988..45911bf 100644 --- a/src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt +++ b/src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt @@ -24,7 +24,6 @@ package org.itxtech.mcl.addon -import net.mamoe.mirai.console.plugin.PluginManager.INSTANCE.disable import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription import net.mamoe.mirai.console.plugin.jvm.KotlinPlugin @@ -32,10 +31,10 @@ object PluginMain : KotlinPlugin( JvmPluginDescription( id = "org.itxtech.mcl.addon", name = "MCL Addon", - version = "1.1.0" + version = "1.2.1" ) { author("PeratX") - info("iTXTech MCL Addon") + info("MCL Addon 支持在 Mirai Console 中使用 Mirai Console Loader 管理包和其他高级功能") } ) { lateinit var addon: Addon diff --git a/src/main/kotlin/org/itxtech/mcl/addon/logger/ConsoleLogger.kt b/src/main/kotlin/org/itxtech/mcl/addon/logger/ConsoleLogger.kt index b658064..c40e5a9 100644 --- a/src/main/kotlin/org/itxtech/mcl/addon/logger/ConsoleLogger.kt +++ b/src/main/kotlin/org/itxtech/mcl/addon/logger/ConsoleLogger.kt @@ -36,10 +36,10 @@ open class ConsoleLogger : DefaultLogger() { val sender: ThreadLocal = ThreadLocal() override fun log(s: String, lvl: Int) { - val sender = this.sender.get() if (lvl < logLevel) { return } + val sender = this.sender.get() if (sender != null && sender.isUser()) { PluginMain.launch { try {