Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_kVuh4pG0.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
MSMP Console - 墨喵 Minecraft 资源
MSMP Console 图标

MSMP Console

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/msmp-console
资源信息

Minecraft 版本: 26.1 26.1.1 26.1.2 26.2

平台: fabric

标签: library management utility

资源介绍

MSMP Console

A server-side Fabric mod that extends the Minecraft Server Management Protocol (MSMP) by providing additional functions for interacting with the console.

This mod is designed for tooling, dashboards, automation systems, external monitoring tools, and integrations that need structured access to the server console without relying on RCON or log-file tailing.

Installation

  1. Download the mod .jar and place it in your server's mods/ folder.
  2. Enable the Management Server in server.properties:
    management-server-enabled=true
  3. Start the server. The Management Server will listen on localhost:25576 by default.

Configuration

On first start, the mod generates a configuration file at <server_root_dir>/config/msmp/console/config.yml:

# Main configuration file for MSMP Entity.

# Configuration for log related settings.
log:
  # The minimum log level that gets forwarded as a console:notification/log/event.
  # Events below this level are ignored entirely and never sent to connected clients.
  # @possible: TRACE | DEBUG | INFO | WARN | ERROR | FATAL
  # @default: 'INFO'
  level: INFO
# Configuration for send related settings.
send:
  # Enable logging for the execution of a command in the console, this prevents echoing the send command.
  # @default: true
  log-command-execution: true

RPC Methods

The mod currently provides the following MSMP RPC methods. All of these methods are also automatically discoverable through the standard rpc.discover MSMP endpoint.

Method Description
console:send Executes a command on the server console with full permissions and returns its output

If you want more methods or notifications for other purposes, please open an issue

RPC Notifications

The mod also provides the following MSMP RPC notification that clients can subscribe to:

Method Description
console:notification/log/event Fired for every server console log event at or above the configured log.level

Method Reference

console:send

Executes an arbitrary command as if typed by an operator (full permissions) and returns its textual feedback/error output together with a success indicator. The command may be sent with or without a leading /.

// Request
{ "command": "say Hello" }

// Response
{
  "command": "say Hello",
  "result": "",
  "success": true
}

console:notification/log/event

Fired for every server console log event whose level is at or above the configured log.level. Events below that level are dropped before ever reaching connected clients.

{
  "jsonrpc": "2.0",
  "method": "console:notification/log/event",
  "params": [{
    "timestamp": "2026-03-21T15:06:06.146Z",
    "level": "INFO",
    "thread": "Server thread",
    "logger": "net.minecraft.server.MinecraftServer",
    "message": "Done (1.019s)! For help, type \"help\"",
    "throwable": ""
  }]
}
{
  "jsonrpc": "2.0",
  "method": "console:notification/log/event",
  "params": [{
    "timestamp": "2026-03-21T15:06:07.212Z",
    "level": "ERROR",
    "thread": "Server thread",
    "logger": "net.minecraft.server.MinecraftServer",
    "message": "Encountered an unexpected exception",
    "throwable": "java.lang.NullPointerException: Cannot invoke ...\n\tat net.minecraft.server.MinecraftServer..."
  }]
}

License

LGPL-3.0

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Item Info Copier

价格:0 墨喵币
下载量:0

查看详情
Refined Steel Works

价格:0 墨喵币
下载量:0

查看详情
Fossils Reimagined

价格:0 墨喵币
下载量:0

查看详情
EzMine

价格:0 墨喵币
下载量:0

查看详情