SMPShield:你的 Minecraft 服务器监控解决方案
概述
SMPShield 是一款专为 Minecraft 服务器设计的创新插件,通过易于使用的 API 提供关键服务器统计数据的实时监控。无论你是服务器所有者、开发者还是社区管理员,SMPShield 都能帮助你深入了解服务器的性能状况并高效管理服务器。
主要功能
- 实时服务器统计数据:获取关于服务器性能的关键信息,包括:
- CPU 使用率:监控服务器消耗的 CPU 资源,帮助你识别性能瓶颈。
- RAM 使用率:跟踪已分配和实际使用的内存,确保服务器运行流畅且无内存泄漏。
- TPS(每秒刻数):获取实时 TPS 更新,确保玩家体验无延迟的游戏过程。
- 在线玩家信息:获取在线玩家列表,包括他们的用户名和唯一 ID。
工作原理
SMPShield 在你的 Minecraft 服务器上创建一个本地 HTTP 服务器,暴露出各种 API 端点。这些端点允许你以 JSON 格式获取实时数据。该插件轻量级,不会给服务器性能带来显著负担。
API 端点
- /status:返回包含当前服务器统计数据的 JSON 对象:
{
"tps": 20.14,
"cpu_usage": 3.50,
"total_memory": 12902400000,
"free_memory": 11632963584,
"players_online": 0
}
[
{"name": "Player1", "uuid": "123e4567-e89b-12d3-a456-426614174000"},
{"name": "Player2", "uuid": "123e4567-e89b-12d3-a456-426614174001"}
]
安装与配置
? 如何使用 SMPShield:
- 从提供的链接下载 SMPShield 插件(可在我们的 Discord 服务器获取)。
- 将 JAR 文件上传至 Minecraft 服务器的
plugins 目录。
- 重启服务器以激活插件。
- 配置
config.yml 文件以设置所需的 API 端口。你可以根据服务器配置指定端口号。
- 配置完
config.yml 后,重启服务器两次。
访问 API
插件安装并服务器运行后,你可以使用服务器的 IP 地址和指定的端口访问 API 端点。例如:
- 获取服务器状态,请访问:
http://<your-server-ip>:<port>/status
- 获取在线玩家列表,请访问:
http://<your-server-ip>:<port>/players
与 Discord 和网站的集成
SMPShield 对于希望为 Discord 创建机器人或将服务器统计数据集成到网站中的开发人员特别有益。借助可用的 API,你可以:
- 构建 Discord 机器人,向你的社区公告服务器性能指标。
- 创建显示实时服务器统计数据的 Web 仪表板,提升服务器的互动性和透明度。
支持与社区
如需支持、功能请求或分享反馈,请加入我们的 Discord 社区:SMPShield Discord
结语
SMPShield 是任何希望优化服务器性能并为玩家提供更佳体验的 Minecraft 服务器所有者的必备工具。凭借其简洁的 API 和实时数据,你将拥有高效监控和管理服务器所需的一切。
加入 Discord:点击这里
SMPShield: Your Minecraft Server Monitoring Solution
Overview
SMPShield is an innovative plugin designed for Minecraft servers that provides real-time monitoring of critical server statistics through an easy-to-use API. Whether you're a server owner, developer, or community manager, SMPShield empowers you to gain insights into your server's performance and manage it efficiently.
Key Features
- Real-Time Server Statistics: Access vital information about your server’s performance, including:
- CPU Usage: Monitor how much CPU your server is consuming, helping you identify performance bottlenecks.
- RAM Usage: Track both allocated and used memory, ensuring your server runs smoothly without memory leaks.
- TPS (Ticks Per Second): Get real-time TPS updates to ensure your players experience lag-free gameplay.
- Online Player Information: Retrieve a list of online players, including their usernames and unique IDs.
How It Works
SMPShield creates a local HTTP server on your Minecraft server, which exposes various API endpoints. These endpoints allow you to fetch real-time data in JSON format. The plugin is lightweight and doesn’t add significant overhead to your server’s performance.
API Endpoints
- /status: Returns a JSON object with current server statistics:
{
"tps": 20.14,
"cpu_usage": 3.50,
"total_memory": 12902400000,
"free_memory": 11632963584,
"players_online": 0
}
- /players: Returns a list of currently online players:
[
{"name": "Player1", "uuid": "123e4567-e89b-12d3-a456-426614174000"},
{"name": "Player2", "uuid": "123e4567-e89b-12d3-a456-426614174001"}
]
Installation and Configuration
? How to Use SMPShield:
- Download the SMPShield plugin from the provided link (available on our Discord server).
- Upload the JAR file to your Minecraft server's plugins directory.
- Restart your server to activate the plugin.
- Configure the
config.yml file to set your desired API port. You can specify the port number to suit your server's configuration.
- Restart your server twice after configuring
config.yml.
Accessing the API
Once the plugin is installed and the server is running, you can access the API endpoints using the server’s IP and the specified port. For example:
- To get server status, visit:
http://<your-server-ip>:<port>/status
- To get the list of online players, visit:
http://<your-server-ip>:<port>/players
Integration with Discord and Websites
SMPShield is particularly beneficial for developers looking to create bots for Discord or integrate server stats into their websites. With the available API, you can:
- Build Discord bots that announce server performance metrics to your community.
- Create web dashboards that display live server stats, enhancing your server's engagement and transparency.
Support and Community
For support, feature requests, or to share feedback, join our Discord community: SMPShield Discord
Conclusion
SMPShield is an essential tool for any Minecraft server owner who wants to optimize their server's performance and provide a better experience for players. With its straightforward API and real-time data, you'll have everything you need to monitor and manage your server efficiently.
join discord : CLICK HERE
评论 0
登录后参与评分
还没有评论,来抢沙发吧