Velocity Whitelist

插件

· 作者 Rathinosk

用于使用 MySQL/MariaDB 管理 Minecraft 白名单的 Velocity 插件

0 本站下载 0 关注 更新于 1 年前

最新 1.2.8 · 26.2 · Velocity

一键开服(送7天)

Velocity 白名单

这是一个 Velocity 插件,旨在使用 MySQL/MariaDB 作为后端存储来管理 Minecraft 白名单。由于找不到完全符合我需求的插件,我决定修改此插件以满足我的需要。

该项目基于 moesnow 的 MySQLWhitelistVelocity 版本 1.2.0。

我正在原封不动地在我的 26.1/26.2 服务器集群中使用它。

安装

  1. 从 Releases 页面下载最新版本。
  2. 将 JAR 文件放入 Velocity 代理的 plugins 目录中。
  3. 启动或重启代理。

配置

该插件使用位于 plugins/velocitywhitelist 目录中的配置文件 (config.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 <player>: 将玩家添加到白名单。
  • /vwl del <player>: 从白名单中移除玩家。(支持数据库自动补全)
  • /vwl list <search>: 列出匹配搜索条件的玩家。(最少 2 个字符)

管理员命令

  • /vwl enable: 启用白名单。
  • /vwl disable: 禁用白名单。
  • /vwl reload: 重新加载 config.properties。
  • /vwl debug <on/off>: 开启或关闭调试消息。

权限

  • velocitywhitelist: 使用基本白名单命令所需权限。
  • velocitywhitelist.admin: 使用白名单管理员命令所需权限。

用法

  1. 在 config.properties 文件中配置 MySQL 连接详情。
  2. 启动代理。
  3. 使用 /vwl 命令管理白名单。

问题与贡献

forthebadge

如果您遇到任何问题或有改进建议,请在 GitHub 仓库 上提交 Issue 或 Pull Request。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源