新增:实例指标(Metrics)与玩家管理(Whitelist / Ban / Unban) #1996
+849
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
关联 Issue
Refs #1011
背景 / 需求
MCSManager 的文件管理很强大,但多实例管理场景下仍缺少:
主要变更
1) Instance Metrics(实例指标)卡片
InstanceMetricsinstance/detail的processInfo)instance.info)2) Player Manager(玩家管理)卡片
InstancePlayerManager(当前仅对 Minecraft Java 实例启用)whitelist add/remove <player>ban <player> [reason]pardon <player>whitelist.jsonbanned-players.json3) 卡片注册与默认布局
/instances/terminal页面默认展示 Metrics 与 Player Manager 两张卡片4) i18n
en_US/zh_CN),其它语言由 fallback 机制回退权限与安全说明
/api/protected_instance/command权限校验(需要用户对该实例有权限)兼容性 / 限制