Skip to content

Commit

Permalink
Addon: release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Jul 26, 2021
1 parent f89b6f1 commit cbae85a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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) 管理包和其他高级功能。

# 安装

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions src/main/kotlin/org/itxtech/mcl/addon/PluginMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@

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

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ open class ConsoleLogger : DefaultLogger() {
val sender: ThreadLocal<CommandSender?> = 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 {
Expand Down

0 comments on commit cbae85a

Please sign in to comment.