Skip to content

Commit e918c67

Browse files
committed
basic readme
1 parent 91cfffa commit e918c67

2 files changed

Lines changed: 107 additions & 0 deletions

File tree

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Multi Rcon API
2+
3+
[English](./README_EN.md) | 简体中文
4+
5+
6+
一个使用rcon来做到对群组服进行简单操作的api
7+
8+
9+
## 依赖
10+
11+
MCDReforged: >=2.1.2
12+
13+
## 配置
14+
15+
`broadcast `: 是否将特定事件通过rcon进行广播, 其中 `startup`为服务器启动事件, `stop` 为服务器关闭事件
16+
17+
`servers` : 存储群组服务器中所有的rcon信息, 键为服务器名, 建议与跨服中的名称保持一致;值为rcon的 地址/端口/ 密码 等信息
18+
19+
`self_server`: 存储此子服务器名称, 用于在通过rcon广播事件时作为标识
20+
21+
`groups`: 存储自定义服务器分组信息
22+
23+
示例配置文件如下:
24+
25+
```json
26+
{
27+
"broadcast": {
28+
"startup": true,
29+
"stop": false
30+
},
31+
"servers": {
32+
"Survival": {
33+
"address": "localhost",
34+
"port": "25565",
35+
"password": "default_password_please_change"
36+
},
37+
"Creative": {
38+
"address": "localhost",
39+
"port": "25566",
40+
"password": "default_password_please_change"
41+
},
42+
"Mirror": {
43+
"address": "localhost",
44+
"port": "25567",
45+
"password": "default_password_please_change"
46+
}
47+
},
48+
"self_server": "Survival",
49+
"groups": {
50+
"g_creative": ["Creative", "Mirror"]
51+
}
52+
}
53+
```
54+

README_EN.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Multi Rcon API
2+
3+
English| [简体中文](./README.md)
4+
5+
6+
An api to make it easier to control group server by rcon
7+
8+
## Dependencies
9+
10+
MCDReforged: >=2.1.2
11+
12+
## Config
13+
14+
`broadcast `: Whether to broadcast startup and stop event through rcon
15+
16+
`servers` : The rcon info of all the group servers, key for server name, suggested to set as the same in the Velocity/BungeeCord, value for rcon info
17+
18+
`self_server`: The server name of current sub-server, used in broadcast for identification.
19+
20+
`groups`: The custom server group
21+
22+
Example config file are as follow:
23+
24+
```json
25+
{
26+
"broadcast": {
27+
"startup": true,
28+
"stop": false
29+
},
30+
"servers": {
31+
"Survival": {
32+
"address": "localhost",
33+
"port": "25565",
34+
"password": "default_password_please_change"
35+
},
36+
"Creative": {
37+
"address": "localhost",
38+
"port": "25566",
39+
"password": "default_password_please_change"
40+
},
41+
"Mirror": {
42+
"address": "localhost",
43+
"port": "25567",
44+
"password": "default_password_please_change"
45+
}
46+
},
47+
"self_server": "Survival",
48+
"groups": {
49+
"g_creative": ["Creative", "Mirror"]
50+
}
51+
}
52+
```
53+

0 commit comments

Comments
 (0)