UltimateRewards Wiki
  • Getting started
    • Support
  • Addons
  • Configs
    • Player Levels
    • Referrals
    • Loginstreak
  • USAGE
    • Installation
    • Commands
  • configuration
    • Rewards
      • Creating Reward
      • Reward Types
        • Afk Reward
          • World Afk Reward
          • Area Afk Reward
          • Region Afk Reward
        • Advent Calendar
        • Pickable Reward
        • Time Reward
        • Time Fixed Reward
        • Streak Reward
        • Streak Fixed Reward
        • Vote Reward
        • Renewable Vote Reward
        • Per Vote Reward
        • Streak Vote Reward
        • Play Time Reward
        • Renewable Play Time Reward
        • Referral Reward
        • Renewable Referral Reward
        • Purchasable Reward
        • Re-Purchasable Reward
        • One Time Reward
        • Time Limited Reward
        • Custom Reward
        • Multiple Custom Reward
        • Coupon Reward
        • Discord Reward
      • Reward Settings
      • Reward Actions
      • Reward Features
        • Auto Claim
        • Notifications
        • Reward NPC
        • Discord Support
        • Reward Requirements
        • Reward Variants
        • Selectable Rewards
        • Randomization
          • Execution Chances
          • Random Placeholders
        • AFK Checkers
        • Leaderboards
    • Menus
      • Basics
      • Example of GUIs
      • Setting Menu
    • Schedules & Timers
  • Colors & Models
  • Placeholders
  • API
    • Events
    • Examples
    • Setting up own playtime calculator
  • Policies
    • TOS
Powered by GitBook
On this page
  1. configuration
  2. Rewards
  3. Reward Features

Selectable Rewards

PreviousReward VariantsNextRandomization

Last updated 10 months ago

The player has the option to select their preferred reward from a list of available reward options. Once a reward is chosen, a cooldown is automatically applied to the other reward variants. This mechanic encourages strategic decision-making, as the player must consider the consequences of their choice and the timing of future opportunities to claim the other rewards.

This can be used for every type of reward except for streak reward types

Example

enabled: true
type: time_reward
tag: Time Reward
cooldown: 24
cooldown-general-format: "%hours% hours"
cooldown-format: '%hours%:%minutes%:%seconds%'
available-after-first-join: false
live-reminder-enabled: true
required-slots: 3
permission: ultimaterewards.exampleTimeReward
available-item: CHEST_MINECART
available-display-name: '&a&lFIRST TIME REWARD'
available-lore:
  - '&7Can be obtained every &f%cooldown%'
  - ' '
  - '&7Contains:'
  - '&e ➪ 16x Gold Ingot'
  - ' '
  - '&e► Click to claim'
unavailable-display-name: "&7&lTIME REWARD"
unavailable-lore:
  - '&7Available in:'
  - '&7%cooldown%'
unavailable-item: MINECART
no-permission-item: BARRIER
no-permission-display-name: "&c&l&mTIME REWARD"
no-permission-lore:
  - "&c ✕ Locked, requires"
  - "&c   %permission% permission"
actions:
  100:
    - '[console] give %player% gold_ingot 16'
    - '[console] say %player% claimed their %type% reward!'
    #    - '[actionbar] &aSuccessfully claimed!' # Action bar can be used only from 1.12 versions!
    - '[title] &aClaimed'
    - '[subtitle] &aReward %type%'
    - '[message] &7Enjoy your claimed reward | New line!'
  20:
    - '[message] &a&lYou have been extra lucky today! Received 5 more diamonds!'
    - '[console] give %player% diamond 5'
variants:
  second:
    permission: ultimaterewards.timeRewardExample.second
    available-display-name: "&6&lSECOND TIME REWARD"
    available-lore:
      - '&7Can be obtained every &f%cooldown%'
      - ' '
      - '&7Contains:'
      - '&e ➪ 24x Iron Ingots'
      - ' '
      - '&e► Click to claim'
    actions:
      100:
        - '[console] give %player% iron_ingot 24'
        - '[console] say %player% claimed their %type% reward!'
        #    - '[actionbar] &aSuccessfully claimed!' # Action bar can be used only from 1.12 versions!
        - '[title] &aClaimed'
        - '[subtitle] &aReward %type%'
        - '[firework] colors:{FF0000;00FF00;0000FF},type:BALL_LARGE,power:3'
        - '[sound] BLOCK_CHEST_OPEN,volume:0.2,pitch:1'
  third:
    permission: ultimaterewards.timeRewardExample.third
    available-display-name: "&b&lTHIRD TIME REWARD"
    available-lore:
      - '&7Can be obtained every &f%cooldown%'
      - ' '
      - '&7Contains:'
      - '&e ➪ 2x Diamonds'
      - ' '
      - '&e► Click to claim'
    actions:
      100:
        - '[console] give %player% diamond 2'
        - '[console] say %player% claimed their %type% reward!'
        #    - '[actionbar] &aSuccessfully claimed!' # Action bar can be used only from 1.12 versions!
        - '[title] &aClaimed'
        - '[subtitle] &aReward %type%'
        - '[firework] colors:{FF0000;00FF00;0000FF},type:BALL_LARGE,power:3'
        - '[sound] BLOCK_CHEST_OPEN,volume:0.2,pitch:1'

In guis.yml:

timeRewards:
  title: Time Rewards Menu
  sound: ANVIL_FALL
  rows: 4
  content:
    '11': exampleTimeReward:default
    '13': exampleTimeReward:second
    '15': exampleTimeReward:third
    '31':
      item: BARRIER
      name: '&cBack'
      lore:
      - '&7Return to the main menu'
      action: '[open] main'