Reward Variants

Alias Multi-Rank support

Permissions can be used to determine which reward variant will be claimed by the player. Take for example a reward with One Time Reward type. In this case, the player with the ultimaterewards.oneTimeRewardExample permission will have the given base reward option available. If we want to add more variants, we just need to define another reward version under the variants section as shown in the previous example. Here are the premium and mythic reward options. A given reward variant will be made available to the player based on his permission. If a player has multiple permissives, the reward that is listed last in the variant list will be unlocked. Conversely, if the player has neither, he will be shown a no-permission status and will not be able to collect the reward at all.

#
# Variants for this reward can be added here,
# if you don't want any, delete the variants section
#
# Which variant will be available for player depends on permission
# You can add as many variants you want
#
variants:
  premium:
    permission: ultimaterewards.oneTimeRewardExample.premium
    available-display-name: "&6&lPREMIUM WELCOME BONUS"
    available-lore:
      - ' '
      - '&7Contains:'
      - '&e ➪ 1x Iron Sword'
      - '&e ➪ 1x Iron Axe'
      - '&e ➪ 1x Iron Pickaxe'
      - '&e ➪ 1x Iron Shovel'
      - '&e ➪ 32x Apple'
      - '&e ➪ 1x Red Bed'
      - ' '
      - '&6► Click to claim premium version'
      - '&6   of the reward'
    actions:
      - '[console] give %player% iron_sword 1'
      - '[console] give %player% iron_axe 1'
      - '[console] give %player% iron_pickaxe 1'
      - '[console] give %player% iron_shovel 1'
      - '[console] give %player% apple 32'
      - '[console] give %player% red_bed 1'
      - '[message] &eWelcome to the server, %player%! I hope these items will assist you in getting started.'
  mythic:
    permission: ultimaterewards.oneTimeRewardExample.mythic
    available-display-name: "&5&lMYTHIC WELCOME BONUS"
    available-lore:
      - ' '
      - '&7Contains:'
      - '&d ➪ 1x Diamond Sword'
      - '&d ➪ 1x Diamond Axe'
      - '&d ➪ 1x Diamond Pickaxe'
      - '&d ➪ 1x Diamond Shovel'
      - '&d ➪ 64x Apple'
      - '&d ➪ 1x Red Bed'
      - ' '
      - '&5► Click to claim mythic version'
      - '&5   of the reward'
    actions:
      - '[console] give %player% diamond_sword 1'
      - '[console] give %player% diamond_axe 1'
      - '[console] give %player% diamond_pickaxe 1'
      - '[console] give %player% diamond_shovel 1'
      - '[console] give %player% apple 64'
      - '[console] give %player% red_bed 1'
      - '[message] &eWelcome to the server, %player%! I hope these items will assist you in getting started.'

Last updated