▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Minecraft Server Management Protocol Legacy Support

Minecraft Server Management Protocol Legacy Support

Adds legacy version support for Minecraft Server Management Protocol

9
0

Minecraft Server Management Protocol Legacy Support

Adds a Minecraft Server Management Protocol endpoint to server software that does not provide Mojang's native implementation.

The Minecraft Server Management Protocol is the newer management API for Minecraft servers. It exposes server information and management actions through JSON-RPC over WebSocket, instead of relying on older mechanisms such as server-list ping or RCON. This plugin brings that protocol shape to older server versions and proxy environments so external tools can speak one management protocol across mixed infrastructure.

What it provides

  • A WebSocket endpoint for Minecraft Server Management Protocol clients.
  • JSON-RPC request and response handling compatible with the protocol model documented on the Minecraft Wiki.
  • Discovery through rpc.discover, so clients can inspect which methods are available.
  • Server/proxy status support, including online player list and version information.
  • Management operations for Bukkit-based servers, including players, allowlist, bans, operators, selected server settings, gamerules, save, stop, and system messages.
  • Proxy management operations for Velocity and BungeeCord, including players, kick, status, stop, and system messages.
  • Authentication by shared secret, with browser-origin checks for WebSocket subprotocol authentication.
  • Optional TLS using a PKCS12 keystore.

Reference: https://minecraft.wiki/w/Minecraft_Server_Management_Protocol

Platform Status

PlatformStatus
Spigot / PaperMain supported runtime. Built against the Spigot 1.8.8 API for legacy compatibility.
VelocityProxy runtime support for discovery, players, kick, proxy status, proxy stop, system messages, and proxy/player notifications.
BungeeCordProxy runtime support for discovery, players, kick, proxy status, proxy stop, system messages, and proxy/player notifications.

For legacy SpaceChunks usage, install the Spigot/Paper build on the backend server when you need live server status and online player counts from old Minecraft versions.

Supported Methods

Method groupSpigot / PaperVelocityBungeeCord
rpc.discoveryesyesyes
minecraft:playersyesyesyes
minecraft:players/kickyesyesyes
minecraft:server/statusyesyes, proxy statusyes, proxy status
minecraft:server/stopyesyes, stops proxyyes, stops proxy
minecraft:server/system_messageyesyes, proxy playersyes, proxy players
minecraft:server/saveyesnono
minecraft:allowlist/*yesnono
minecraft:bans/*yesnono
minecraft:ip_bans/*yesnono
minecraft:operators/*yesnono
minecraft:serversettings/*partialnono
minecraft:gamerules/*yesnono

Spigot/Paper server settings are limited to APIs available through the Spigot 1.8.8 API. Implemented settings are autosave, difficulty, use_allowlist, player_idle_timeout, allow_flight read-only, motd read-only, spawn_protection_radius, game_mode, and view_distance read-only.

Supported Notifications

Notification groupSpigot / PaperVelocityBungeeCord
minecraft:notification/server/startedyesyesyes
minecraft:notification/server/stoppingyesyesyes
minecraft:notification/server/statusyesyesyes
minecraft:notification/server/activityyesyesyes
minecraft:notification/players/joinedyesyesyes
minecraft:notification/players/leftyesyesyes
minecraft:notification/server/savingyesnono
minecraft:notification/server/savedyesnono
minecraft:notification/allowlist/*management API changes onlynono
minecraft:notification/bans/*management API changes onlynono
minecraft:notification/ip_bans/*management API changes onlynono
minecraft:notification/operators/*management API changes onlynono
minecraft:notification/gamerules/*management API changes onlynono

Configuration

The service is disabled by default. Enable it only after setting a secret and deciding where it should listen.

Spigot/Paper uses plugins/MinecraftServerManagementProtocolLegacySupport/config.yml:

management-server-enabled: true
management-server-host: localhost
management-server-port: 25585
management-server-secret: 'replaceWithExactly40AlphaNumericCharacters'
management-server-allowed-origins: ''
management-server-tls-enabled: false
management-server-tls-keystore: ''
management-server-tls-keystore-password: ''

Velocity and BungeeCord create management-server.properties in the plugin data folder with the same setting names.

Settings

  • management-server-enabled: Starts or disables the management endpoint.
  • management-server-host: Interface to bind. Use localhost when only local tooling or a reverse proxy should connect.
  • management-server-port: Port for the WebSocket server. Use a fixed port for production.
  • management-server-secret: Required shared secret. It must be exactly 40 alphanumeric characters.
  • management-server-allowed-origins: Comma-separated list of allowed browser origins when authenticating through Sec-WebSocket-Protocol.
  • management-server-tls-enabled: Enables wss://. Requires a valid keystore.
  • management-server-tls-keystore: Path to a PKCS12 keystore.
  • management-server-tls-keystore-password: Keystore password. It can also be supplied through MINECRAFT_MANAGEMENT_TLS_KEYSTORE_PASSWORD or the JVM property management.tls.keystore.password.

License

Licensed under the Apache License, Version 2.0. See LICENSE.

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x1.10.x1.9.x1.8.x

Поддерживаемые окружения

Сервер

Детали

Лицензия:Apache-2.0
Опубликован:1 неделю назад
Обновлён:1 неделю назад
Главная