2025-06-05 14:25:26 +08:00

22 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 一个服务器在线玩家时间以及服务器状态的简单的mod
[English](https://git.branulf.top/Branulf/ServerPlayerOnlineTracker/src/branch/master/README_EN.md)
### 包含功能:
* 显示/记录服务器在线玩家时间
* 显示服务器状态
* 显示服务器在线玩家列表
* ~~移除游戏中的Herobrine~~
### 使用方法:
1. 安装Fabric Loader和Fabric API
2. 将最新版本的mod放入mods文件夹
3. 首次启动服务器自动生成配置文件
4. 修改Web服务器端口(默认60048),语言(目前仅支持zh_cn和en_us),自动保存时间(默认300秒)
### API获取数据
*(也许可以用于机器人?)*
* 获取服务器在线玩家列表【服务器IP+配置的端口】+`/api/online-players`
* 获取服务器状态【服务器IP+配置的端口】+`/api/server-status`
* 获取服务器在线玩家时间【服务器IP+配置的端口】+`/api/stats`
* 获取服务器在线玩家数量【服务器IP+配置的端口】+`/api/player-count`
* ~~原始数据文件【服务器IP+配置的端口】+`/api/playerdata`~~