nonebot-plugin-mc-whitelist-controller
Project description
nonebot-plugin-mc-whitelist-controller
✨一个控制管理Minecraft服务器白名单的机器人插件✨
[!NOTE] 该项目目前还处于开发中,还不属于完全体,还不是很稳定!
📖 介绍
这是一个控制管理Minecraft服务器白名单的机器人插件,将mc服务器中的玩家id与QQ号绑定,实现对服务器内所有玩家的追根溯源,支持正版服务器和离线服务器。本插件可以在QQ中将玩家id注册入服务器白名单,同时会生成一个包含每个玩家id与其绑定的QQ号信息的json文件,供服务器管理员参看。
💿 安装
使用git clone安装
可以将本项目克隆到你已经建立好的Nonebot机器人的目录内,并在project.toml中配置好本插件的安装目录git clone https://github.com/leaf2006/nonebot-plugin-mc-whitelist-controller.git
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| WHITELIST_PATH | 是 | 无 | 服务器whitelist.json的绝对路径 |
| SERVER_STATUS | 否 | offile | 填写服务器状态(正版/离线服务器):online/offline |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| /注册 或 /register + [玩家id] | 群员 | 否 | 群聊 | 向服务器白名单注册玩家信息 |
| /指令列表 | 群员 | 否 | 群聊 | 查看指令列表 |
[!IMPORTANT] 在首次使用本插件前,或切换过SERVER_STATUS参数后,请务必手动清除whitelist.json中除"[]"号外的所有内容,防止出现错误;且非必要情况请不要修改nonebot_plugin_mc_whitelist_controller/data/profile.json文件,以免出现问题!
效果图
注:以下示例展示的是在离线服务器环境下的实机演示
此时whitelist.json会自动添加以下语句:
[
// whitelist.json
...
{
"uuid": "dbc89c79-8236-36b0-b2cf-7dd0b9989b27",
"name": "leaf2006"
}
]
此时profile.json会自动添加以下语句,包括注册者的玩家id与QQ号:
[
...
// nonebot_plugin_mc_whitelist_controller/data/profile.json
{
"name": "leaf2006",
"qq": "此处代表该人的QQ号"
}
]
Copyright © Leaf developer 2023-2026,遵循MIT开源协议
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_mc_whitelist_controller-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_mc_whitelist_controller-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970029044877244797e9f07bcad82f4f6d73fc8ffd4508a61b2576d7b166feb1
|
|
| MD5 |
a26b8b9c562658aeaa3a9e743c34f1d1
|
|
| BLAKE2b-256 |
329443df26975d87e0872fa2bee79b16cceebed0e9a24e3db624280f5cb0ef77
|
File details
Details for the file nonebot_plugin_mc_whitelist_controller-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_mc_whitelist_controller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8378ddf599b42808b6f575cc279d21af7ba7bb7a83b2dbeb190c4e0697d98a7e
|
|
| MD5 |
2efa282adc0a199e07c252999c6c5c11
|
|
| BLAKE2b-256 |
fcf762afac25d694dff6e816098e82f756d9335d7849c7fed5243c33c052a981
|