English|简体中文
Minecraft server status query, supporting IPv6.
update synchronously with https://github.com/molanp/zhenxun_check_minecraft/.
One of the methods mentioned below can be selected.
[recommended] install using nb-cli
Open the command line in the root directory of Bot and enter the following instructions to install.nb plugin install nonebot-plugin-mccheck
install using package manager
In the plug-in directory of the nonebot2 project, open the command line and enter the corresponding installation command according to the package manager you use.pip install nonebot-plugin-mccheck
# or
pdm add nonebot-plugin-mccheck
# or
poetry add nonebot-plugin-mccheck
# or
conda install nonebot-plugin-mccheck
Open the pyproject.toml
file in the root directory of the nonebot2 project, and write in the [tool.nonebot]
section.
plugins = ["nonebot_plugin_mccheck"]
- Full platform adapter support
- Adapted unicode full fonts and glyphs
- Render Motd styles
- Query server nickname
- Query the maximum number of servers, the current number of people
- Query server motd
- returns the server address and port
- Returns the server online status
- Query server latency
- More precise delay
- UDP server is supported
- Error message feedback
- Port autocompletion
- Wisdom
Barriercan determine whether the IP address is correct - Get the JSON version of the server motd (only if the server motd is set to JSON format)
- Does not depend on any external API :)
- Support special port queries (e.g.
2
,80
,443
etc.) - Query server favicon
- Multilingual
- SRV support
- Fully colored underlined/strikethrough
- Get server protocol number
- Get server official website (if any)
- And more...
v0.1.22
Geyser server double check(More than just HTML messages are supported, only one is shown here)
Add the required configuration in the following table to the .env
file of the nonebot2 project.
Configuration Item | Required | Default Value | Description |
---|---|---|---|
MCC__LANGUAGE |
False | zh-cn |
Languages used by the plugin to render images Available languages: [ zh-cn ,zh-tw ,en ] |
MCC__TYPE |
False | 0 |
The type of message the plugin sends (0 for HTML, 1 for image, 2 for text) |
Type | Special Styles | Favicon | Fully colored underline/strikethrough | Full Unicode font support |
---|---|---|---|---|
Text | ❌ | ⭕ | ❌ | ⭕ |
Picture | ⭕ | ⭕ | ⭕ | ❌ |
HTML | ⭕ | ⭕ | ⭕ | ⭕ |
Command | Parameter | Scope | Description |
---|---|---|---|
mcheck |
[ip]:[port] or [ip] |
Private/Group Chat | Check Minecraft server status |
set_lang |
Language name | Private/Group Chat | Set the language used by the plugin for rendering images |
lang_now |
None | Private/Group Chat | View the current language used by the plugin for rendering images |
lang_list |
None | Private/Group Chat | View the list of languages supported by the plugin |