Skip to content

Commit

Permalink
basic readme
Browse files Browse the repository at this point in the history
  • Loading branch information
401U committed Sep 5, 2021
1 parent 91cfffa commit e918c67
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Multi Rcon API

[English](./README_EN.md) | 简体中文


一个使用rcon来做到对群组服进行简单操作的api


## 依赖

MCDReforged: >=2.1.2

## 配置

`broadcast `: 是否将特定事件通过rcon进行广播, 其中 `startup`为服务器启动事件, `stop` 为服务器关闭事件

`servers` : 存储群组服务器中所有的rcon信息, 键为服务器名, 建议与跨服中的名称保持一致;值为rcon的 地址/端口/ 密码 等信息

`self_server`: 存储此子服务器名称, 用于在通过rcon广播事件时作为标识

`groups`: 存储自定义服务器分组信息

示例配置文件如下:

```json
{
"broadcast": {
"startup": true,
"stop": false
},
"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"
}
},
"self_server": "Survival",
"groups": {
"g_creative": ["Creative", "Mirror"]
}
}
```

53 changes: 53 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Multi Rcon API

English| [简体中文](./README.md)


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

## Dependencies

MCDReforged: >=2.1.2

## Config

`broadcast `: Whether to broadcast startup and stop event through rcon

`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

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

`groups`: The custom server group

Example config file are as follow:

```json
{
"broadcast": {
"startup": true,
"stop": false
},
"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"
}
},
"self_server": "Survival",
"groups": {
"g_creative": ["Creative", "Mirror"]
}
}
```

0 comments on commit e918c67

Please sign in to comment.