为你的MC服务器搭建一个实时在线的网页监控面板

为你的MC服务器搭建一个实时在线的网页监控面板

MCServerStatusWebPanel是一个纯静态打造的开源的MCJava/基岩/互通服务器状态网页面板

仓库地址:https://github.com/SZYInnovationStudio/MCServerStatusWebPanel/

特点

安装方法

文件结构

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MCServerStatusWebPanel
├─ JAVA
│ ├─ config.json(服务器名称、地址)
│ ├─ favicon.png(服务器头像)
│ ├─ script.js(接口调用、动画JS)
│ ├─ status.html(主页面)
│ └─ style.css(CSS)
├─ Bedrock
│ ├─ config.json
│ ├─ favicon.png
│ ├─ script.js
│ ├─ status.html
│ └─ style.css
└─ All
├─ config.json
├─ favicon.png
├─ script.js
├─ status.html
└─ style.css

详细教程

  1. 从Releases下载合适的版本(JAVA/Bedrock/All)
  2. 将下载好的压缩包解压至网站目录
  3. 修改config.json为你的服务器名称和地址
  4. 修改status.html的网页标题
  5. favicon.png替换为你的服务器实际头像
  6. 如果你希望将这个页面作为你的网站主页,将status.html改为index.html并删除有关action-bar的所有内容
  7. 查看部署效果

预览图

图为互通服版本

预览地址:https://minecraft.szyd.fun/status.html