SpectrumOnlineReward

插件

· 作者 ewsk233

SpectrumOnlineReward 是一款基于 TabooLib 打造的高度可配置的 Minecraft 在线奖励插件,支持游戏时长与活动奖励、AFK(挂机)检测、周期性奖励循环、登录连击排行榜以及可自定义的 GUI 菜单。

0 本站下载 0 关注 更新于 2 个月前

最新 1.0.0 · 26.2 · Bukkit / Folia

一键开服(送7天)

SpectrumOnlineReward

SpectrumOnlineReward 是一款在线奖励插件。它可以根据在线时间、活跃时间、连续活跃天数或总活跃天数发放奖励。支持每日、每周、每月、永久以及限时活动周期,并提供可自定义的 GUI 和多种物品库。

命令

别名:/sor、/or、/onlinereward

命令 描述
/sor, /sor open 打开主菜单
/sor menu <menu-id> [player] 打开特定菜单;为其他玩家打开需要额外权限
/sor claim <reward-id> 直接领取可用的奖励
/sor pending 继续处理安全待处理的交付
/sor help 查看帮助信息
/sor admin reload 重新加载配置
/sor admin info <player-or-uuid> 查看时间、进度、领取记录及有效活跃天数
/sor admin history <player-or-uuid> 查看最近的领取历史
/sor admin delivery <player-or-uuid> 查看物品/命令交付状态及错误信息
/sor admin addtime <player> <time> [online|active] [cycle] 增加或减少时间
/sor admin settime <player> <time> [online|active] [cycle] 设置时间
/sor admin reset <player> [cycle] 重置一个周期并允许再次领取奖励
/sor admin retry <claim-id> <action-index> confirm 验证并重试失败的操作
/sor admin cleanup [days] [apply] 清理旧的审核记录;不带 apply 参数时仅预览更改

占位符

%sor_today_online%
%sor_today_active%
%sor_today_online_seconds%
%sor_today_active_seconds%
%sor_next_reward%
%sor_next_remaining%
%sor_available_count%
%sor_claimed_count%
%sor_streak%
%sor_reward_daily_gift_state%

示例配置

gui/_templates.yml

Templates:
  filler:
    display:
      material: GRAY_STAINED_GLASS_PANE
      name: ' '

  reward:
    type: reward
    display:
      material:
        - condition: 'reward.state == "CLAIMED"'
          allow: LIME_STAINED_GLASS_PANE
        - condition: 'reward.state == "LOCKED"'
          allow: GRAY_DYE
        - allow: '{reward.material}'
      name: '{reward.name}'
      glow:
        - condition: 'reward.state == "AVAILABLE"'
          allow: true
        - allow: false
      lore:
        - '&7进度: &f{reward.progress_formatted} &7/ &f{reward.required_formatted}'
        - ''
        - '&e奖励:'
        - include: reward.preview
        - ''
        - condition: 'reward.state == "CLAIMED"'
          allow: '&a✔ 已领取'
        - condition: 'reward.state == "AVAILABLE"'
          allow: '&e左键点击领取 · 右键点击预览'
        - condition: 'reward.state == "LOCKED"'
          allow: '&7? {reward.reason}'
    actions:
      left: ['claim']
      right: ['preview']

  reward-list:
    template: reward
    type: reward-list
    source:
      period: daily
      track: normal
      sort: order

  back:
    display:
      material: ARROW
      name: '&f返回'
    actions:
      left: ['back']

  previous:
    visible-if: 'menu.has_previous == true'
    display:
      material: ARROW
      name: '&f上一页'
    actions:
      left: ['page: previous']

  next:
    visible-if: 'menu.has_next == true'
    display:
      material: ARROW
      name: '&f下一页'
    actions:
      left: ['page: next']

  summary:
    display:
      material: CLOCK
      name: '&e{player.name}''s 在线奖励'
      lore:
        - '&7今日在线: &f{today.online}'
        - '&7今日活跃: &f{today.active}'
        - '&7可用奖励: &a{available_count}'
        - '&7距离每日重置: &f{daily.reset_remaining}'
        - '&7第 {menu.page} 页 / 共 {menu.pages} 页'

gui/main.yml

Title: '&8在线奖励'

Layout:
  - '####S####'
  - '#DWMLEVT#'
  - '####X####'

Options:
  refresh-ticks: 20
  click-cooldown-ticks: 5

Buttons:
  '#':
    template: filler

  S:
    template: summary

  D:
    display: {material: YELLOW_FLOWER, name: '&e每日奖励'}
    actions:
      left: ['open: daily']

  W:
    display: {material: GOLD_INGOT, name: '&a每周奖励'}
    actions:
      left: ['open: weekly']

  M:
    display: {material: DIAMOND, name: '&b每月奖励'}
    actions:
      left: ['open: monthly']

  L:
    display: {material: BEACON, name: '&d永久奖励'}
    actions:
      left: ['open: lifetime']

  E:
    display: {material: MELON_SLICE, name: '&a夏季活动'}
    actions:
      left: ['open: events/summer']

  V:
    display: {material: EMERALD, name: '&6VIP奖励'}
    actions:
      left: ['open: vip']

  T:
    display:
      material: GOLDEN_APPLE
      name: '&e活跃连击 & 排行榜'
      lore:
        - '&7左键点击:活跃连击'
        - '&7右键点击:排行榜'
    actions:
      left: ['open: streak']
      right: ['open: leaderboard']

  X:
    display: {material: BARRIER, name: '&c关闭'}
    actions:
      left: ['close']

rewards/daily.yml

rewards:
  daily_10m:
    name: '&a活跃 10 分钟'
    period: daily
    track: normal
    time-type: ACTIVE
    required: 600 # 秒数;根据游戏内语言设置格式化显示
    order: 10
    material: IRON_INGOT
    preview:
      - '&f铁锭 ×8'
    actions:
      - type: item
        material: IRON_INGOT
        amount: 8
      - 'message: &a您已领取 10 分钟活跃奖励!'

  daily_30m:
    name: '&e活跃 30 分钟'
    period: daily
    track: normal
    time-type: ACTIVE
    required: 1800
    order: 20
    material: GOLD_INGOT
    preview:
      - '&f金锭 ×8'
    actions:
      - type: item
        material: GOLD_INGOT
        amount: 8

  daily_60m:
    name: '&b活跃 60 分钟'
    period: daily
    track: normal
    time-type: ACTIVE
    required: 3600
    order: 30
    material: DIAMOND
    preview:
      - '&f钻石 ×3'
    actions:
      - type: item
        material: DIAMOND
        amount: 3

daily_120m: name: '&d在线 120 分钟 · 随机补给' period: daily track: normal time-type: ONLINE required: 7200 order: 40 material: ENDER_CHEST preview: - '&f铁锭 ×8(80% 概率)或钻石 ×3(20% 概率)' - '&7每 10 次抽取必出钻石;预览不会触发抽取' actions: - 'pool: daily_supplies'


如有任何问题或建议,请联系作者或加入 QQ 群。该群还提供使用 Agent 技能编写配置文件的帮助。
你也可以通过我的 Discord 邀请链接获取支持。

作者 QQ:`2962271068`  
QQ 群:`724504184`

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源