- 版权类型
- 原创
- 版权链接
- #
MCPing Tool a1.2 是一个轻量级命令行 Minecraft Java 版服务器状态查询工具,使用 Python 编写,基于 mcstatus 库实现 SLP 协议查询。它适合服主、玩家和运维人员快速检测服务器连通性、版本信息、在线人数与 MOTD 内容。程序启动后会检查 mcstatus 是否安装,若缺失则自动通过 pip 安装,降低使用门槛。用户只需输入服务器地址,例如 mc.example.top:25565,程序会先调用 nslookup 进行域名解析检测,再尝试获取服务器状态。查询成功后,会显示版本名称、协议号、在线人数与最大人数,并将 MOTD 的 JSON 聊天组件递归解析为纯文本输出,方便复制和查看。若服务器提供玩家样例,还会列出在线玩家名称。遇到 Unknown host、TimeoutError、Connection refused 等异常时,程序会给出中文提示,帮助定位 DNS、端口或服务问题。a1.2 版本更新更简洁、规范,适合日常使用与二次开发。
本帖程序基于MIT协议开源,源码下载地址:
MIT License
Copyright (c) 2026 Doubao, DeepSeek, Zhanggouyu
Released under the MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
本帖程序基于MIT协议开源,源码下载地址:
MIT License
Copyright (c) 2026 Doubao, DeepSeek, Zhanggouyu
Released under the MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.