feat: 启动时输出部分配置信息

This commit is contained in:
2024-03-08 15:06:59 +08:00
parent ea0c3e005b
commit 54db21ea51
2 changed files with 6 additions and 1 deletions

View File

@@ -66,6 +66,11 @@ public abstract class BallAPI {
allPlayerInfo = new ConcurrentHashMap<>();
eventBus = new AsyncEventBus("HamsterBall - EventBus", CoreAPI.getInstance().getExecutorService());
eventBus.register(BallCommonListener.INSTANCE);
getLogger().info("频道前缀: " + ballConfig.getChannelPrefix());
getLogger().info("启用子服更新玩家状态: " + ballConfig.isGameServerUpdatePlayerInfo());
if (ballConfig.isGameServerUpdatePlayerInfo()) {
getLogger().info("仅加载以下代理服入口的玩家信息: " + ballConfig.getLoadPlayerInfoFilter());
}
if (ballConfig.isDebug()) {
getLogger().warning("已启用调试模式");
eventBus.register(BallDebugListener.INSTANCE);