Randomization refers to the ability to create custom placeholders (in the "randoms.yml" file) where you specify a numerical range from which a random number will be selected during command execution.
Let's consider this example configuration:
placeholders:exampleRandom:16-64# Will return random number between 16 - 64anotherRandom:10-10000# Will return random number between 10 - 10,000
Now we can use the specified placeholders in the actions of any reward. Here's a demonstration example:
Suppose we have a reward called "Welcome Bonus" which gives the player a certain amount of apples. We want the amount of apples to be randomized within a certain range using the exampleRandom placeholder we defined earlier.
enabled:truetype:one_time_rewarddisappear:falseuse-firework:truepermission:ultimaterewards.welcomeBonusavailable-item:CHEST_MINECARTavailable-display-name:'&a&lWELCOME BONUS'available-lore: - ' ' - '&7Contains:' - '&e ➪ 16 - 64x Apple' - ' ' - '&b► Click to claim'unavailable-display-name:"&7&lWELCOME BONUS"unavailable-lore: - '&7Welcome bonus was already' - '&7claimed.'unavailable-item:MINECARTno-permission-item:BARRIERno-permission-display-name:"&c&l&mWELCOME BONUS"no-permission-lore: - "&c ✕ Locked, requires" - "&c %permission% permission"actions: - '[console] give %player% apple %exampleRandom%' - '[message] &aWelcome to the server, %player%! I hope these items will assist you in getting started.'
You can define as many custom placeholders as you need in the "randoms.yml" file, and use them in your commands to add some variability to your server gameplay.