Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.99 KB

File metadata and controls

63 lines (48 loc) · 1.99 KB

Multi Rcon API

MCDReforged license build status Release total download

English| 简体中文

An api to make it easier to control group server by rcon

Config

  1. main config

broadcast : Whether to broadcast startup and stop event through rcon

self_server: The server name of current sub-server, used in broadcast for identification.

data_file: The path to the data file.

Example config file are as follows:

{
    "broadcast": {
        "startup": true,
        "stop": false
    },
    "self_server": "Survival",
    "data_file": "config/MultiRconAPI_ServerList.json"
}
  1. data file

servers : The rcon info of all the group servers, key for server name, suggested setting as the same in the Velocity/BungeeCord, value for rcon info

groups: The custom server group

Example data file are as follows:

{
    "servers": {
        "Survival": {
            "address": "localhost",
            "port": "25565",
            "password": "default_password_please_change"
        },
        "Creative": {
            "address": "localhost",
            "port": "25566",
            "password": "default_password_please_change"
        },
        "Mirror": {
            "address": "localhost",
            "port": "25567",
            "password": "default_password_please_change"
        }
    },
    "groups": {
        "g_creative": ["Creative", "Mirror"]
    }
}