BoosterRewards | Discord 到 Minecraft 同步
BoosterRewards 是一个经过架构优化的系统,旨在以精准的方式自动化公会 booster(加速者)奖励。它通过将 Discord booster 遥测数据直接同步到 Minecraft 服务器的内部权限和经济层,消除了手动分发奖励的摩擦。

高级功能
架构完整性
专为现代服务器环境设计,BoosterRewards 通过专注于数据持久性和线程安全,避免了遗留系统的结构性缺陷。
- 主线程解耦:数据库 I/O(H2/MySQL)和 Discord API 交互严格卸载到专用的工作线程。
- 热重载集成:通过
/br reload 执行原子性的机器人重新初始化和配置更新,无需重启服务器。
- 预测性状态同步:实时监听架构即时检测 booster 状态变化,确保撤销逻辑优先执行。
动态奖励演进
无需摩擦即可在赛季中途向奖励池添加新项目。
- 细粒度追踪:每个项目都通过 MD5 哈希进行唯一索引。
- 自适应领取:现有的 boosters 在下一次执行
/claim 时仅自动接收新增的项目,防止重复分发之前已获得的奖励。
双向链接
通过直观的协议无缝连接身份。支持 Discord 到 Minecraft(令牌握手)和 Minecraft 到 Discord 流程。
管理
命令注册表
| 命令 |
别名 |
描述 |
权限 |
/boosterrewards |
/br, /brp |
主要系统管理。 |
boosterrewards.admin |
/setboosterreward |
/rewardsadmin |
通过 GUI 配置基于物品的奖励。 |
boosterrewards.admin |
/claim |
|
访问奖励分发界面。 |
无 |
/link [code] |
|
启动身份映射。 |
无 |
/unlink |
/logout |
终止账户链接。 |
无 |
/forceunlink <p> |
/forcelogout |
管理员链接终止。 |
boosterrewards.admin |
可视化奖励定义
通过直接操作界面定义奖励。支持任意 NBT、自定义元数据和复杂附魔。

配置模式
多层级层级结构
根据 Discord 角色或任期定义多条奖励路径。
rewards:
booster:
enabled: true
permission: "boosterrewards.booster"
on-boost:
- "lp user %player% parent add booster"
- "eco give %player% 5000"
on-stop:
- "lp user %player% parent remove booster"
cooldown: 0
one-time: false
BoosterRewards | Discord-to-Minecraft Synchronization
BoosterRewards is an architecturally optimized system designed to automate guild booster incentives with surgical precision. It eliminates the friction of manual reward distribution by synchronizing Discord booster telemetry directly with your Minecraft server's internal permission and economy layers.

Premium Features
Architectural Integrity
Engineered for modern server environments, BoosterRewards avoids the structural pathologies of legacy systems by focusing on data persistence and thread safety.
- Main-Thread Decoupling: Database I/O (H2/MySQL) and Discord API interactions are strictly offloaded to dedicated worker threads.
- Hot-Reload Integration: Perform atomic bot re-initialization and configuration updates via
/br reload without server restarts.
- Predictive State Sync: Real-time listening architecture detects boost status changes instantaneously, ensuring revocation logic is prioritized.
Dynamic Reward Evolution
Add new items to reward pools mid-season without friction.
- Granular Tracking: Every item is uniquely indexed via MD5 hashing.
- Adaptive Claiming: Existing boosters will automatically receive only newly added items upon their next
/claim, preventing duplicate distribution of previously obtained rewards.
Bi-Directional Linking
Seamlessly connect identities through intuitive protocols. Supports both Discord-to-Minecraft (token handshake) and Minecraft-to-Discord flows.
Administration
Command Registry
| Command |
Alias |
Description |
Permission |
/boosterrewards |
/br, /brp |
Main system management. |
boosterrewards.admin |
/setboosterreward |
/rewardsadmin |
Configure item-based rewards via GUI. |
boosterrewards.admin |
/claim |
|
Access the reward distribution interface. |
None |
/link [code] |
|
Initiate identity mapping. |
None |
/unlink |
/logout |
Terminate account link. |
None |
/forceunlink <p> |
/forcelogout |
Administrative link termination. |
boosterrewards.admin |
Visual Reward Definition
Define rewards through a direct-manipulation interface. Supports arbitrary NBT, custom metadata, and complex enchantments.

Configuration Patterns
Multi-Tiered Hierarchies
Define multiple reward paths based on Discord roles or tenure.
rewards:
booster:
enabled: true
permission: "boosterrewards.booster"
on-boost:
- "lp user %player% parent add booster"
- "eco give %player% 5000"
on-stop:
- "lp user %player% parent remove booster"
cooldown: 0
one-time: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧