Make Console Make Sense (MCMS)
你的服务器控制台是一团由 Java 异常和晦涩警告组成的混乱。MCMS 修复了这个问题。
每条错误信息都会被翻译成通俗的英语(带点讽刺意味)。再也不用在凌晨两点去搜索 java.net.SocketException: Connection reset,也不用盯着长达 40 行的堆栈跟踪试图找出到底哪里出了错。
转换前 vs 转换后
转换前:
[WARN]: java.net.SocketException: Connection reset
[ERROR]: java.lang.NullPointerException
[WARN]: Can't keep up! Is the server overloaded? Running 2034ms or 40 ticks behind
[WARN]: Skipping BlockEntity with id mysticmod:magic_chest
转换后:
[WARN]: A player ragequit so hard they broke TCP. Respect. RIP connection.
[ERROR]: [MCMS] WHAT: Something was null that really shouldn't have been. Classic developer blunder.
[ERROR]: [MCMS] WHERE: MyPlugin.java:42 in com.example.MyPlugin.doThing()
[WARN]: ALERT: Server is gasping for air! Running 2034ms (40 ticks) behind. Turn off the 500-hopper contraptions, please.
[WARN]: Found a mysterious block entity 'mysticmod:magic_chest'. Probably from a mod someone installed, loved for a week, and uninstalled.
信息量相同。真正可读。略带讽刺。
哪些内容会被转换?
- 网络错误 — SocketException、超时、管道断开 → 通俗易懂的断连提示
- 服务器卡顿 — “Can't keep up!” 附带精确的毫秒数和刻数
- 插件错误 — 启用/禁用失败、废弃 API、非正确线程调用
- Java 异常 — NullPointerException、StackOverflow、ClassCast、OutOfMemory 等 20 多种异常
- 世界/区块 — 未知的实体方块、重复的 UUID、区块加载失败
- 玩家事件 — 加入、断开连接、非法移动、未知命令
- Mojang 认证 — 认证失败、会话服务器宕机
- YAML/配置错误 — 带行号的解析错误
- 启动/关闭 — 版本信息、世界加载、存档消息
共计 70+ 种模式。对于异常,与其让完整的堆栈跟踪淹没你的控制台,你将看到:
[ERROR]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[ERROR]: [MCMS] WHAT: Something was null that really shouldn't have been.
[ERROR]: [MCMS] TYPE: java.lang.NullPointerException
[ERROR]: [MCMS] WHERE: MyPlugin.java:42 in com.example.MyPlugin.doThing()
[ERROR]: [MCMS] Full stack trace follows:
[ERROR]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
完整的堆栈跟踪仍然会跟随其后——没有任何隐藏。你只是先看到了重点部分。
功能
- 即插即用 —— 无需任何配置
- 彩色启动横幅(在支持的终端上)
- 更新检查器 —— 有新版本时会在控制台中通知你,并提供链接
/mcms stats —— 查看本会话中已转换的消息数量
- 兼容 Paper、Purpur、Spigot、Bukkit、Folia 以及所有 Paper 分支
安装
- 下载
MCMS.jar
- 放入
plugins/ 文件夹
- 重启服务器
- 搞定
命令
| 命令 |
权限 |
描述 |
/mcms stats |
mcms.use |
显示转换统计信息 |
/mcms update |
mcms.admin |
手动检查更新 |
/mcms reload |
mcms.admin |
重新加载配置 |
/mcms help |
mcms.use |
显示帮助信息 |
所有权限默认仅限 OP(管理员)使用。
要求
- Minecraft: 1.18 或更高版本
- Java: 25 或更高版本
- 服务器: Bukkit / Spigot / Paper / Purpur / Folia(任何基于 Bukkit 的服务器)
Make Console Make Sense (MCMS)
Your server console is a dumpster fire of Java exceptions and cryptic warnings. MCMS fixes that.
Every error message gets translated into plain English (with a bit of sarcasm). No more googling java.net.SocketException: Connection reset at 2am. No more staring at a 40-line stack trace trying to find what actually went wrong.
Before vs After
Before:
[WARN]: java.net.SocketException: Connection reset
[ERROR]: java.lang.NullPointerException
[WARN]: Can't keep up! Is the server overloaded? Running 2034ms or 40 ticks behind
[WARN]: Skipping BlockEntity with id mysticmod:magic_chest
After:
[WARN]: A player ragequit so hard they broke TCP. Respect. RIP connection.
[ERROR]: [MCMS] WHAT: Something was null that really shouldn't have been. Classic developer blunder.
[ERROR]: [MCMS] WHERE: MyPlugin.java:42 in com.example.MyPlugin.doThing()
[WARN]: ALERT: Server is gasping for air! Running 2034ms (40 ticks) behind. Turn off the 500-hopper contraptions, please.
[WARN]: Found a mysterious block entity 'mysticmod:magic_chest'. Probably from a mod someone installed, loved for a week, and uninstalled.
Same information. Actually readable. Slightly sarcastic.
What gets transformed?
- Network errors — SocketException, timeout, broken pipe → plain disconnect messages
- Server lag — "Can't keep up!" with exact ms and tick count
- Plugin errors — enable/disable failures, deprecated API, wrong-thread calls
- Java exceptions — NullPointerException, StackOverflow, ClassCast, OutOfMemory, and 20+ more
- World/Chunks — unknown block entities, duplicate UUIDs, chunk failures
- Player events — joins, disconnects, illegal movement, unknown commands
- Mojang auth — authentication failures, session servers down
- YAML/config errors — parse errors with line numbers
- Startup/shutdown — version info, world loading, save messages
70+ patterns total. And for exceptions, instead of the full stack trace flooding your console, you get:
[ERROR]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[ERROR]: [MCMS] WHAT: Something was null that really shouldn't have been.
[ERROR]: [MCMS] TYPE: java.lang.NullPointerException
[ERROR]: [MCMS] WHERE: MyPlugin.java:42 in com.example.MyPlugin.doThing()
[ERROR]: [MCMS] Full stack trace follows:
[ERROR]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The full trace still follows — nothing is hidden. You just get the important part first.
Features
- Drop-in install — zero configuration required
- Colored startup banner (on supported terminals)
- Update checker — notifies you in the console when a new version is out, with a link
/mcms stats — see how many messages have been transformed this session
- Works on Paper, Purpur, Spigot, Bukkit, Folia, and all Paper forks
Installation
- Download
MCMS.jar
- Drop it in your
plugins/ folder
- Restart
- That's it
Commands
| Command |
Permission |
Description |
/mcms stats |
mcms.use |
Show transformation stats |
/mcms update |
mcms.admin |
Manually check for updates |
/mcms reload |
mcms.admin |
Reload config |
/mcms help |
mcms.use |
Show help |
All permissions default to OP only.
Requirements
- Minecraft: 1.18 or newer
- Java: 25 or newer
- Server: Bukkit / Spigot / Paper / Purpur / Folia (any Bukkit-based server)
评论 0
登录后参与评分
还没有评论,来抢沙发吧