MSMP Enhanced
Extends the Minecraft Server Management Protocol (MSMP), including new JSON RPC methods and Unix socket support
介绍
MSMP Enhanced
MSMP Enhanced is a server-side Fabric Mod that extends the Minecraft Server Management Protocol introduced in Minecraft 1.21.9 (25w35a).
This mod provides optional Unix socket support and adds additional RPC methods.
MSMP Enhanced can also be used as a remote server console backend, similar to RCON but with support for structured Text Components and command tab completion.
This allows external tools (like web panels or CLI utilities) to run commands, view styled output, and get live suggestions for commands as you type.
Features
Methods
Command Execution
- Method:
msmpenhanced:command/run - Description: Runs console commands and returns the command output as structured Text Components
- Parameters:
command(String) - Response:
messages(Array of Text Components)
Command Suggestion (Tab Completion)
- Method:
msmpenhanced:command/suggest - Description: Allows external tools (e.g. web panel or CLI tools) to provide command tab completion
- Parameters:
partialCommand(String) - Response:
suggestions(Command Suggestions)
Unix Socket Support (Optional)
Instead of binding the Minecraft Management Server to a TCP port, MSMP Enhanced can listen on a Unix Domain Socket.
See Config for the configuration options.
Schemas
Command Suggestions
start(Integer): start position of the suggestionsend(Integer): end position of the suggestionssuggestions(Array of Command Suggestion)
Command Suggestion
text(String): command suggestiontooltip(Optional Text Component): additional tooltip
Config
Config is stored at config/msmpenhanced.json
{
"unixSocketEnabled": false,
"unixSocketPath": "msmp.sock"
}
MSMP Enhanced will default to TCP (vanilla behavior).
License
This project is licensed under the GNU Lesser General Public License version 3 only.
常见问题
MSMP Enhanced 支持哪些 Minecraft 版本?
MSMP Enhanced 支持 Minecraft Java 版 1.21.9–26.3,共 8 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
MSMP Enhanced 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分