Compare commits

..

No commits in common. "a69adaf749e5aeb3c723822e8732f0ecc5d0d057" and "d3523f244241ee83110feb98af690625fc044a75" have entirely different histories.

2 changed files with 17 additions and 21 deletions

View File

@ -1,7 +1,6 @@
# 一个服务器在线玩家时间以及服务器状态的简单的mod # 一个服务器在线玩家时间以及服务器状态的简单的mod
[English](https://git.branulf.top/Branulf/ServerPlayerOnlineTracker/src/branch/master/README_EN.md) [English](https://git.branulf.top/Branulf/ServerPlayerOnlineTracker/src/branch/master/README_EN.md)
注意本mod并不完善可能会存在些许的bug
### 包含功能: ### 包含功能:
* 显示/记录服务器在线玩家时间 * 显示/记录服务器在线玩家时间
* 显示服务器状态 * 显示服务器状态
@ -13,7 +12,6 @@
2. 将最新版本的mod放入mods文件夹 2. 将最新版本的mod放入mods文件夹
3. 首次启动服务器自动生成配置文件 3. 首次启动服务器自动生成配置文件
4. 修改Web服务器端口(默认60048),语言(目前仅支持zh_cn和en_us),自动保存时间(默认300秒) 4. 修改Web服务器端口(默认60048),语言(目前仅支持zh_cn和en_us),自动保存时间(默认300秒)
5. 如需在外部访问请确保端口已开放
### API获取数据 ### API获取数据
*(也许可以用于机器人?)* *(也许可以用于机器人?)*

View File

@ -1,25 +1,23 @@
# A simple mod for tracking online player time and server status # A simple mod for online player time and server status
[中文简体](https://git.branulf.top/Branulf/ServerPlayerOnlineTracker/src/branch/master/README.md) [中文简体](https://git.branulf.top/Branulf/ServerPlayerOnlineTracker/src/branch/master/README.md)
Note: This mod is currently not perfect and may have all sorts of strange bugs. Note: This mod is currently not perfect and may have all sorts of strange bugs.
Note: This mod is not perfect and may have some bugs. ### Includes functions:
### Features include: * Display /Record server online player time
* Display/record server online player time * Display server status
* Show server status * Show the server online player list
* Display a list of online players on the server * ~~Remove Herobrine in the game~~
* ~~Remove Herobrine from the game~~
### How to use: ### How to use:
1. Install Fabric Loader and Fabric API. 1. Install Fabric Loader and Fabric API
2. Place the latest version of the mod into the mods folder. 2. Put the latest version of mods into the mods folder
3. The configuration file will be generated automatically when starting the server for the first time. 3. Automatically generate configuration files when starting the server for the first time
4. Modify the web server port (default 60048), language (currently only supports zh_cn and en_us), and automatic save interval (default 300 seconds). 4. Modify the web server port (default 60048), language (currently only supports zh_cn and en_us), automatic save time (default 300 seconds)
5. If external access is needed, ensure that the port is open.
### API data retrieval: ### API to get data:
*(Maybe can be used for bots?)* *(Maybe it can be used for robots?)*
* Get a list of online players on the server: [Server IP + configured port] + `/api/online-players` * Get the online player list of servers: [Server IP+configured port] +`/api/online-players`
* Get server status: [Server IP + configured port] + `/api/server-status` * Get server status: [Server IP+configured port] +`/api/server-status`
* Get online player time on the server: [Server IP + configured port] + `/api/stats` * Get the server online player time: [Server IP+configured port] +`/api/stats`
* Get number of online players on the server: [Server IP + configured port] + `/api/player-count` * Get the number of online players on the server: [Server IP+configured port] +`/api/player-count`
* ~~Raw data file: [Server IP + configured port] + `/api/playerdata`~~ * ~~Raw data file: [Server IP+configured port] +`/api/playerdata`~~