Velocity Whitelist

用于通过MySQL/MariaDB管理Minecraft白名单的Velocity插件。

资源图片
# Velocity 白名单 这是一个 Velocity 插件,旨在通过 MySQL/MariaDB 作为后端存储来管理 Minecraft 白名单。由于找不到完全符合我需求的插件,我决定调整这个插件以适应我的需求。 该项目基于 [MySQLWhitelistVelocity by moesnow](https://github.com/moesnow/MySQLWhitelistVelocity) 版本 1.2.0。 ## 安装 1. 从 [发布](https://github.com/rathinosk/VelocityWhitelist/releases) 页面下载最新版本。 2. 将 JAR 文件放在你的 Velocity 代理的 `plugins` 目录下。 3. 启动或重启代理。 ## 配置 该插件使用配置文件 (`config.properties`),位于 `plugins/velocitywhitelist` 目录下。 ### 默认配置 ```properties # 白名单状态 enabled: false # 启用调试消息 debug: false # MySQL 设置 host: localhost user: username password: strongpassword database: velocity port: 3306 table: g_whitelist # 踢出消息 message: Sorry, you are not in the whitelist. ``` ### 配置选项 - `enabled`: 设置为 `true` 以启用白名单。 - `host`, `user`, `password`, `database`, `port`, `table`: MySQL 数据库连接详细信息。 - `message`: 显示给不在白名单中的玩家的踢出消息。 ## 指令 # 基础指令 - `/vwl add `: 将玩家添加到白名单。 - `/vwl del `: 从白名单中移除玩家。(带有 DB 自动完成功能) - `/vwl list `: 列出与搜索条件匹配的玩家。(最小 2 个字符) # 管理员指令 - `/vwl enable`: 启用白名单。 - `/vwl disable`: 禁用白名单。 - `/vwl reload`: 重新加载 config.properties。 - `/vwl debug `: 开启或关闭调试消息。 ## 权限 - `velocitywhitelist`: 使用基础白名单命令所需的权限。 - `velocitywhitelist.admin`: 使用白名单管理员命令所需的权限。 ## 使用方法 1. 在 `config.properties` 文件中配置 MySQL 连接详细信息。 2. 启动代理。 3. 使用 `/vwl` 命令管理白名单。 ## 问题和贡献 [![forthebadge](https://forthebadge.com/images/badges/works-on-my-machine.svg)](https://forthebadge.com) 如果你遇到任何问题或有改进建议,请在 [GitHub 仓库](https://github.com/rathinosk/VelocityWhitelist) 上打开一个问题或提交一个拉取请求。