MSMP Enhanced
MSMP Enhanced 是一款服务端 Fabric 模组,扩展了在 Minecraft 1.21.9 (25w35a) 中引入的 Minecraft Server Management Protocol。
该模组提供可选的 Unix socket 支持,并添加了额外的 RPC 方法。 MSMP Enhanced 还可以用作远程服务器控制台后端,类似于 RCON,但支持结构化 Text Components 和命令补全功能。 这使得外部工具(如 Web 面板或 CLI 实用程序)能够运行命令、查看带样式的输出,并在输入时获取命令的实时建议。
功能特性
方法
命令执行
- 方法:
msmpenhanced:command/run - 描述: 运行控制台命令并以结构化 Text Components 形式返回命令输出
- 参数:
command(String) - 响应:
messages(Text Components 数组)
命令建议(Tab 补全)
- 方法:
msmpenhanced:command/suggest - 描述: 允许外部工具(例如 Web 面板或 CLI 工具)提供命令 Tab 补全
- 参数:
partialCommand(String) - 响应:
suggestions(命令建议)
Unix Socket 支持(可选)
与将 Minecraft 管理服务器绑定到 TCP 端口不同,MSMP Enhanced 可以监听 Unix Domain Socket。 有关配置选项,请参阅 Config。
数据结构
命令建议
start(Integer): 建议的起始位置end(Integer): 建议的结束位置suggestions(Command Suggestion 数组)
命令建议
text(String): 命令建议文本tooltip(可选 Text Component): 附加的提示信息
配置
配置文件位于 config/msmpenhanced.json
{
"unixSocketEnabled": false,
"unixSocketPath": "msmp.sock"
}
MSMP Enhanced 默认使用 TCP(原版行为)。
许可证
本项目仅在 GNU Lesser General Public License version 3 下许可。
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
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
下载 MSMP Enhanced
- 更新至 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧