Skip to content

Commit

Permalink
Remove slf4j dependency, upgrade mirai version
Browse files Browse the repository at this point in the history
  • Loading branch information
Under-estimate committed Dec 20, 2022
1 parent 9341eb8 commit b518927
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# McMotd
[![mirai](https://img.shields.io/badge/mirai-v2.10.0-brightgreen)](https://github.com/mamoe/mirai )
[![mirai](https://img.shields.io/badge/mirai-v2.13.2-brightgreen)](https://github.com/mamoe/mirai )
基于[mirai](https://github.com/mamoe/mirai )的Minecraft服务器信息查询插件

> 关于Linux运行环境
> 如果你正在使用Linux而不是Windows来运行Mirai,请确保系统中安装了中文字体,否则图片可能不会被正常渲染。
## 如何安装
1.[这里](https://github.com/Under-estimate/McMotd/releases/ )下载最新的插件文件。
> 使用`.mirai.jar`还是`.mirai2.jar`
> `mirai-console``2.11.0`版本起支持了[新的插件加载方式](https://github.com/mamoe/mirai/releases/tag/v2.11.0-M1),如果您正在使用高版本`mirai-console`,则可以使用`.mirai2.jar`以避免可能的插件间依赖冲突;`.mirai.jar`为兼容插件格式,大多数版本的`mirai-console`均能使用。
2. 将插件文件放入[mirai-console](https://github.com/mamoe/mirai-console )运行生成的`plugins`文件夹中。
3. 如果您还未安装[chat-command](https://github.com/project-mirai/chat-command )插件(添加聊天环境中使用命令的功能),你可以从下面选择一种方法安装此插件:
> 1. 如果您正在使用[Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader )来启动[mirai-console](https://github.com/mamoe/mirai-console ),您可以运行以下命令来安装[chat-command](https://github.com/project-mirai/chat-command )插件:
Expand Down
7 changes: 3 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
plugins {
val kotlinVersion = "1.5.30"
val kotlinVersion = "1.7.21"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion

id("net.mamoe.mirai-console") version "2.9.2"
id("net.mamoe.mirai-console") version "2.13.2"
}

group = "org.zrnq"
version = "1.1.11"
version = "1.1.12"

repositories {
maven("https://maven.aliyun.com/repository/public")
Expand All @@ -19,7 +19,6 @@ dependencies {
implementation(kotlin("reflect"))
implementation("com.alibaba:fastjson:1.2.83")
implementation("dnsjava:dnsjava:3.5.0")
implementation("org.slf4j:slf4j-nop:1.7.36")
}

tasks.create("CopyToLib", Copy::class) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/zrnq/mcmotd/McMotd.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object McMotd : KotlinPlugin(
JvmPluginDescription(
id = "org.zrnq.mcmotd",
name = "Minecraft MOTD Fetcher",
version = "1.1.11",
version = "1.1.12",
) {
author("ZRnQ")
info("""以图片的形式获取指定Minecraft服务器的基本信息""")
Expand Down

0 comments on commit b518927

Please sign in to comment.