Skip to content

Commit

Permalink
mcl: release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Jul 30, 2021
1 parent 9d1c21e commit 60c67fb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'org.itxtech'
version '1.2.1'
version '1.2.2'
description '模块化、轻量级且支持完全自定义的 mirai 加载器。'

repositories {
Expand Down
4 changes: 2 additions & 2 deletions scripts/addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ for (let i in pkgs) {
}
}
if (!found) {
let p = new Config.Package("org.itxtech:mcl-addon", "stable");
let p = new Config.Package("org.itxtech:mcl-addon", "c122");
p.type = Config.Package.TYPE_PLUGIN;
loader.config.packages.add(p);
loader.logger.info("MCL Addon is installed! See https://github.com/iTXTech/mcl-addon");
loader.logger.info("MCL Addon is installed! Website: https://github.com/iTXTech/mcl-addon");
loader.logger.warning("To remove MCL Addon, run \"./mcl --disable-script addon\" and \"./mcl --remove-package org.itxtech:mcl-addon --delete\"");
}
1 change: 1 addition & 0 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ phase.cli = () => {
let lvl = Integer.parseInt(loader.cli.getOptionValue("c"));
loader.logger.setLogLevel(lvl);
loader.config.logLevel = lvl;
loader.saveConfig();
}
if (loader.cli.hasOption("s")) {
let pkgs = loader.config.packages;
Expand Down
2 changes: 1 addition & 1 deletion scripts/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function check(pack) {
.a("Package ")
.reset().gold().a("\"").a(pack.id).a("\"")
.reset().lightRed().a(" has newer version ")
.reset().gold().a("\"").a(pack.id).a("\"")
.reset().gold().a("\"").a(ver).a("\"")
);
showNotice = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/itxtech/mcl/impl/AnsiLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void log(Object info, int level) {
break;
case LOG_WARNING:
ansi = ansi.fgBrightYellow();
prefix = "WARNING";
prefix = "WARN";
break;
case LOG_ERROR:
ansi = ansi.fgBrightRed();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/itxtech/mcl/impl/DefaultLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void log(Object info, int level) {
prefix = "INFO";
break;
case LOG_WARNING:
prefix = "WARNING";
prefix = "WARN";
break;
case LOG_ERROR:
prefix = "ERROR";
Expand Down

0 comments on commit 60c67fb

Please sign in to comment.