mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-25 18:46:18 +00:00
- core.admin.AdminView:在线玩家(地址、TCP/WebSocket、所在服务器、在线时长)、服务器 (地址、人数、来源)与状态(版本、运行时长、传输层、监听地址、堆内存、最近 10 分钟活动) 的只读快照;不从控制台线程直接读取会话状态 - Session 在发布玩家时记录连接详情;ProxySessionListener.onlinePlayers() - ConnectionLog 用 RecentCounter(10 个一分钟桶)统计加入、离开、拒绝、转服与失败; 连接数上限与插件池拒绝计入过载 - app.console:Console 在终端中使用 JLine(提示符固定在底部、历史、Tab 补全),否则按行读取 标准输入;ConsoleLogAppender 让日志打印在提示符上方并为警告/错误着色 - 内置命令 help/list/servers/player/status/send/kick/loglevel/stop,先于插件控制台命令; 同名插件命令在启动时警告;send/kick/loglevel/stop 写入 moonbridge.admin - 依赖:JLine 3.30.17(reader、terminal、FFM 提供者),logback 改为编译期依赖 - 文档:operations.md 控制台命令、logging.md、CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>