每日奖励 GUI:
玩家使用 /daily 命令打开一个精美的库存 GUI,显示他们的每日奖励进度。每一天都由一个彩色面板表示:
绿色面板: 奖励已被领取或当前可领取。 红色面板: 奖励被锁定或已错过(连击重置)。
可配置的奖励: 在 config.yml 中使用简单的语法轻松定义每天的奖励。可以添加任意天数的奖励!
冷却系统: 奖励在可配置的冷却期后解锁(默认 24 小时)。玩家必须在下一个奖励解锁前领取奖励,否则连击将重置。
权限支持:
通过 daily.use 权限控制访问(默认授予所有玩家)。
健壮的领取逻辑: 防止在冷却期内重复领取,在不活跃时重置连击,并在最后一天后自动循环奖励。
命令 /daily 描述:打开每日奖励 GUI。 用法:/daily 权限:daily.use(默认:所有玩家为 true) 行为: 打开一个显示所有奖励天的库存 GUI。 绿色面板表示已领取或可领取的奖励。 红色面板表示被锁定或错过的奖励。 玩家可以点击当前可领取天的绿色面板以获取奖励。
配置 (config.yml) yaml
在下一个奖励解锁之前必须经过多少秒(默认 86400 = 24 小时) claim_cooldown_seconds: 86400
每天的奖励。格式:MATERIAL_NAME(数量) rewards: day1: "DIAMOND_SWORD (1)" day2: "EMERALD (3)" day3: "GOLDEN_APPLE (2)" day4: "DIAMOND (2)" 通过编辑 rewards 部分来添加或删除天数。 使用有效的大写 Minecraft 材质名称。 数量必须是正整数。
数据持久化 玩家的领取数据保存在插件文件夹内的 data.yml 中。 按玩家 UUID 存储的数据包括: 上次领取时间戳(纪元秒) 当前连击天数
工作原理 打开 GUI: 当玩家运行 /daily 时,插件加载其领取数据和冷却状态。它构建一个每个奖励天一个面板的 GUI。
面板颜色:
绿色:已领取的天数或当前可领取的天数。 红色:被锁定的天数,或者如果玩家未能及时领取(连击重置)。
领取奖励: 点击当前可领取天的绿色面板会发放配置的奖励,更新玩家的上次领取时间和连击天数,并关闭 GUI。
冷却与连击重置: 玩家必须在两次领取之间等待配置的冷却时间。如果他们未能在下一个奖励解锁前领取(超过两倍的冷却时间),他们的连击将重置为第 1 天。
奖励循环: 在最后一个配置的天数之后,连击会自动重置为第 1 天。
权限
daily.use
允许使用 /daily 命令
true
支持 如需提交错误报告、功能请求或其他任何问题,请加入我们的 Discord!
Daily Reward GUI: Players use the /daily command to open a sleek inventory GUI showing their daily reward progress. Each day is represented by a colored pane:
Green Pane: Reward already claimed or currently claimable. Red Pane: Reward locked or missed (streak reset). Configurable Rewards: Easily define rewards per day in the config.yml using simple syntax. Add as many days as you want!
Cooldown System: Rewards unlock after a configurable cooldown period (default 24 hours). Players must claim their reward before the next one unlocks or their streak resets.
Permission Support: Control access with the daily.use permission (granted to all players by default).
Robust Claiming Logic: Prevents multiple claims within cooldown, resets streaks on inactivity, and automatically cycles rewards after the last day.
Commands /daily Description: Opens the daily rewards GUI. Usage: /daily Permission: daily.use (default: true for all players) Behavior: Opens an inventory GUI showing all reward days. Green panes indicate claimed or claimable rewards. Red panes indicate locked or missed rewards. Players can click the green pane for the current claimable day to receive their reward. Configuration (config.yml) yaml
How many seconds must pass before the next reward unlocks (default 86400 = 24 hours) claim_cooldown_seconds: 86400
Rewards per day. Format: MATERIAL_NAME (amount) rewards: day1: "DIAMOND_SWORD (1)" day2: "EMERALD (3)" day3: "GOLDEN_APPLE (2)" day4: "DIAMOND (2)" Add or remove days by editing the rewards section. Use valid Minecraft material names in uppercase. Amount must be a positive integer. Data Persistence Player claim data is saved in data.yml inside the plugin folder. Data stored per player UUID includes: Last claim timestamp (epoch seconds) Current streak day How It Works Opening the GUI: When a player runs /daily, the plugin loads their claim data and cooldown status. It builds a GUI with one pane per reward day.
Pane Colors:
Green: Days already claimed or the current claimable day. Red: Locked days or if the player missed claiming in time (streak reset). Claiming Rewards: Clicking the green pane for the current claimable day grants the configured reward, updates the player's last claim time and streak day, and closes the GUI.
Cooldown & Streak Reset: Players must wait the configured cooldown between claims. If they miss claiming before the next reward unlocks (more than twice the cooldown passes), their streak resets to Day 1.
Reward Cycle: After the last configured day, the streak resets to Day 1 automatically.
Permissions
daily.use
Allows use of /daily command
true
Support For bug reports, feature requests, and anything else please join our discord!
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DailyRewards999
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增
- 在默认配置中添加了缺失的宽限期和排行榜大小设置
修复
- 修复了处于最大连击数的玩家无法从菜单中领取奖励的问题
- 修复了首次领取或连击重置后未发放里程碑奖励的问题
- 修复了无效配置静默禁用消息、音效和其他设置的问题
- 修复了更新器有时下载其他 Minecraft 版本构建包的问题
- 修复了当许多玩家从未上线时,排行榜导致服务器卡顿的问题
- 修复了连击数相同的玩家排序不一致的问题
- 修复了权限检查问题,确保记录的权限得到正确执行
- 修复了未知的每日命令静默打开奖励菜单的问题
- 修复了下一个奖励预览显示错误随机奖励的问题
- 修复了冷却中的玩家在点击锁定日期时看到错误消息的问题
- 修复了显示的最大连击数高于实际可用奖励天数的问题
- 修复了管理员命令重复打印其用法说明的问题
- 修复了插件每次领取时都将玩家数据写入磁盘从而导致服务器卡顿的问题
- 修复了占位符集成显示为空作者信息的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧