
湮灭API
为开发者提供的API
请求地址:
https://api.ymypay.cn/API/mcrcon
返回格式:
json
请求方式:
post/get
{
"code": 200,
"msg": "连接成功",
"data": {
"msg": "There are 0 of a max 20 players online:",
"time": 1671883699
}
}
参数名称 | 参数类型 | 是否必填 | 备注内容 |
---|---|---|---|
host |
string |
是 |
mc的ip或地址 |
port |
int |
是 |
mc的cron端口 |
password |
string |
是 |
mc的cron密码 |
command |
string |
是 |
需要执行的命令 |
名称 | 说明 |
---|---|
100 |
连接失败 |
200 |
连接成功 |
199875 |
api不存在 |
199999 |
api维护中 |
参数名称 | 参数类型 | 备注内容 |
---|---|---|
code |
int |
状态码 |
msg |
string |
连接信息:连接成功/连接失败 |
data.msg |
string |
失败原因/命令返回结果 |
data.time |
int |
命令执行的时间 |