Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 725 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 725 Bytes

Motd_For_Minecraft

通过UDP协议获取MCPE的服务器状态
就是平常说的motdpe接口。

接口地址:https://motd.tsfk.top/api.php 请求方式GET/POST

参数 示例 描述
ip play.lbsg.net 服务器IP地址
port 19132 服务器端口

返回JSON数据

参数 示例 描述
status online 服务器唯一状态识别
ip play.lbsg.net 返回查询IP
port 19132 返回查询端口
motd BorderLands In Minecraft 服务器广播内容Motd
agreement 389 协议版本
version 1.14.30 客户端版本
online 4099 服务器在线人数
max 9999 服务器人数上限
gamemode Survival 游戏模式
delay 64 连接服务器延迟(ms)

示例:https://motd.tsfk.top/api.php?ip=play.lbsg.net&port=19132