feat: 优化日志
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
dependencies {
|
||||
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
||||
compileOnly("com.google.code.gson:gson:2.8.0")
|
||||
// https://mvnrepository.com/artifact/io.netty/netty-all
|
||||
compileOnly("io.netty:netty-all:4.1.86.Final")
|
||||
|
||||
// https://mvnrepository.com/artifact/io.netty/netty-buffer
|
||||
compileOnly("io.netty:netty-buffer:4.1.96.Final")
|
||||
|
||||
val hamsterCoreVersion = property("hamster_core_version")
|
||||
compileOnly("cn.hamster3.mc.plugin:core-common:${hamsterCoreVersion}")
|
||||
|
@@ -209,10 +209,10 @@ public abstract class BallAPI {
|
||||
}
|
||||
}
|
||||
}
|
||||
enabled = true;
|
||||
|
||||
RTopic topic = getRedissonClient().getTopic(BALL_CHANNEL, BallMessageInfoCodec.INSTANCE);
|
||||
topic.addListener(BallMessageInfo.class, BallMessageListener.INSTANCE);
|
||||
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
protected void disable() throws SQLException, InterruptedException {
|
||||
@@ -233,7 +233,9 @@ public abstract class BallAPI {
|
||||
statement.executeUpdate();
|
||||
}
|
||||
}
|
||||
getLogger().info("正在关闭 redission...");
|
||||
getRedissonClient().shutdown();
|
||||
getLogger().info("已关闭 redission.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user