Skip to content

v2.0.0-beta.7

Pre-release
Pre-release

Choose a tag to compare

@StarAwA117 StarAwA117 released this 15 Nov 03:04
· 80 commits to main since this release

MCWSLoader 2.0.0-beta.7

⚠️ 测试版 / Beta:升级前请备份 config.json、permission.json、mods/ 和自定义 Mod。

Beta: Back up config.json, permission.json, mods/ and custom Mods before upgrading.

服务模式 / Server modes

新增配置项:

{
  "mode": "both"
}
模式 行为
both 同时启动 WebUI 与 WebSocket,默认
webui 仅启动 WebUI。仪表盘可手动启动 WebSocket
websocket 仅启动 WebSocket,不启动 WebUI

模式在 设置 → 系统 → 模式设置 中修改,保存后需要重启服务生效。
The mode is configured in Settings → System → Server mode and applies after a restart.

仅 WebUI 模式

  • 仪表盘显示 服务未开启 卡片
  • 点击卡片即可启动 WebSocket 服务
  • 启动后服务器状态、连接和客户端详情恢复正常显示
  • 服务未开启时仍可使用 Mod 管理、日志、设置和进程信息
  • 命令、客户端操作和聊天发送会显示限制提示
  • API 会拒绝需要 WebSocket 的请求并返回明确错误

The WebUI shows a Service off card. Clicking it starts WebSocket on demand.
Mods, logs, settings and process info remain available while the service is off.
Commands, client actions and chat sending are blocked with clear messages.

审计修复 / Audit fixes

  • 语言设置和主题设置一样,只在保存成功后切换
  • 更新流程不再执行破坏性的 git reset --hard
  • 更新依赖安装使用 --ignore-scripts
  • mods_config.json 改为原子写入并限制为 0600
  • 文本键 manifest 导入时使用 uuid 生成目录名
  • 更多网络、文件、HTTP 和内部错误转换为可读提示

文本与本地化 / Texts and localization

  • 9 个内置 Mod 全部支持 texts 目录
  • 所有 tell 和 tellAll 文本通过 this.rawtext 读取
  • 命令介绍、参数说明、帮助列表、状态、错误和终端输出已本地化
  • 支持 zh_CN.lang、zh_TW.lang 和 en_US.lang

升级 / Upgrade

git pull
npm install
npm start

从 2.0.0-beta.6 升级无需额外迁移。
No extra migration is required from 2.0.0-beta.6.

完整变更 / Full changelog: v2.0.0-beta.6...v2.0.0-beta.7