RoleSync 0.9.1
RoleSync 是一个 Velocity 插件,它将 Minecraft 账号与 Discord 账号关联,并根据 Discord 角色同步游戏内的权限等级。
0.9.1 版本新增功能:
- 配置文件和消息文件
- 可在
messages.yml 中自定义 Discord 消息
- 支持 SQLite 和 MySQL/MariaDB 存储
- 基于 Discord 角色映射的权限等级同步
- 无需权限插件 API,通过可配置的控制台命令实现
- 基于加入服务器的重检系统,支持配置缓存间隔
- 账号关联功能,支持生成游戏内代码并通过 Discord 验证
工作原理:
- 玩家在服务器内使用
/discord link 生成验证代码
- 玩家向服务器的 Discord 机器人发送
!link <code>
- RoleSync 将 Minecraft 和 Discord 账号进行关联
- 玩家加入服务器时,插件会检查上次角色同步时间是否超过配置的间隔
- 如果添加了 Discord 角色,则执行配置的权限等级命令
- 如果移除了 Discord 角色,则执行配置的取消权限命令
- 如果一切已是最新状态,则不执行任何操作
命令:
/discord link - 生成 Discord 关联代码
/discord unlink - 移除当前的 Discord 关联
/discord status - 显示当前的关联状态
权限:
rolesync.use - 允许使用基本的 RoleSync 命令
配置:
config.yml 包含机器人、存储、间隔和权限等级映射设置
messages.yml 包含所有游戏内和 Discord 消息
- 根据消息或命令上下文,支持占位符如
{player}、{uuid}、{code}、{rank} 和 {minutes}
- 权限等级的分配和移除可通过命令列表完全自定义
存储选项:
- SQLite 适用于简单的本地设置
- MySQL/MariaDB 适用于共享或跨网络设置
支持的 Velocity 版本:
Velocity 3.3.0 及以上版本(Java 17+)
如果您有任何问题、建议或新插件请求,请通过 Discord 联系我。
RoleSync 0.9.1
RoleSync is a Velocity plugin that links Minecraft accounts with Discord accounts and syncs in-game ranks based on Discord roles.
New in Version 0.9.1:
- configuration and message files
- Configurable Discord messages in
messages.yml
- SQLite and MySQL/MariaDB storage support
- Rank sync based on Discord role mappings
- No permission plugin API required, works through configurable console commands
- Join-based recheck system with configurable cache interval
- Account linking with in-game code generation and Discord verification
How it works:
- A player uses
/discord link in-game to generate a verification code
- The player sends
!link <code> on the server to the Discord bot
- RoleSync links the Minecraft and Discord accounts
- On join, the plugin checks whether the last role sync is older than the configured interval
- If a Discord role was added, the configured rank commands are executed
- If a Discord role was removed, the configured revoke commands are executed
- If everything is already up to date, nothing changes
Commands:
/discord link - Generate a Discord link code
/discord unlink - Remove the current Discord link
/discord status - Show the current link status
Permissions:
rolesync.use - Allows access to the basic RoleSync command
Configuration:
config.yml contains bot, storage, interval, and rank mapping settings
messages.yml contains all in-game and Discord messages
- Supports placeholders such as
{player}, {uuid}, {code}, {rank}, and {minutes} depending on the message or command context
- Rank assignment and removal are fully customizable through command lists
Storage Options:
- SQLite for simple local setups
- MySQL/MariaDB for shared or network-wide setups
Supported Velocity Version:
Velocity 3.3.0 and higher (Java 17+)
Just send me a message on Discord if you have any questions, suggestions, or requests for new plugins.
评论 0
登录后参与评分
还没有评论,来抢沙发吧