npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-mc-multiping

v1.0.2

Published

Minecraft server multi-line status query plugin for Koishi

Readme

English

koishi-plugin-mc-multiping

npm version

基于 Koishi 的 Minecraft 服务器多线路状态查询插件。支持 Java Edition (JE) 与 Bedrock Edition (BE),适用于拥有多条连接线路(电信/联通/移动/BGP 等)的服务器,一次查询即可并发检测所有线路的连通性与延迟。

特性

  • 多线路并发查询:为一个逻辑服务器绑定多条地址,查询时并发 ping 所有线路,快速展示各节点延迟与在线状态
  • JE / BE 双端支持:独立声明 Java 版或基岩版服务器,自动使用对应协议
  • SRV 记录自动解析:JE 服务器使用默认端口 (25565) 时自动查询 _minecraft._tcp SRV 记录
  • 文本 / 图片输出:可在配置中选择纯文本响应或图片渲染(图片模式需安装 koishi-plugin-puppeteer
  • 权限隔离:服务器与线路的增删改操作需要 Koishi authority ≥ 3,查询操作全员可用
  • 多语言支持:内置中文 (zh-CN) 与英文 (en-US) 本地化

安装

通过 Koishi 控制台插件市场搜索 mc-multiping 安装,或手动安装:

npm install koishi-plugin-mc-multiping

配置

| 配置项 | 类型 | 默认值 | 说明 | |---|---|---|---| | outputMode | 'text' \| 'image' | 'text' | 输出模式。使用 image 需安装并启用 koishi-plugin-puppeteer | | timeout | number | 5000 | 单次 ping 超时时间(毫秒) |

指令一览

| 指令 | 说明 | 权限 | |---|---|---| | mcm [name] | 查询所有或指定服务器状态 | 全员 | | mcm.list | 列出所有已配置的服务器 | 全员 | | mcm.info <name> | 查看服务器详细信息 | 全员 | | mcm.add <name> <je\|be> | 添加服务器 | ≥ 3 | | mcm.remove <name> | 删除服务器及其所有线路 | ≥ 3 | | mcm.edit <name> <prop> <value> | 修改服务器属性 (name / type) | ≥ 3 | | lines <server> | 列出服务器的所有线路 | 全员 | | lines.add <server> <address> [note] | 为服务器添加线路 | ≥ 3 | | lines.rm <server> <note> | 删除指定备注的线路 | ≥ 3 | | lines.edit <server> <note> <prop> <value> | 修改线路属性 (address / note) | ≥ 3 |

快速上手

mcm.add MyServer je                          # 添加一个 JE 服务器
lines.add MyServer play.dx.com 电信         # 添加电信线路
lines.add MyServer play.lt.com 联通         # 添加联通线路
mcm MyServer                                # 查询该服务器所有线路状态
mcm                                         # 查询所有服务器

致谢

许可证

MIT