Linked Rewards (Win multiple rewards from one reward)
Linked rewards is a special feature used to attach additional rewards to a singular reward, meaning when a user wins one reward he may win additional rewards that come with it.
Inspirations for using linked rewards:
Need to send multiple commands that use the random number feature whilst having a need for different minimum and maximum random number bounds.
Need to give multiple physical items (GiveConfiguratedItem: true) that are configurated inside the plugin and cannot be given out via commands.
Example of when winning a Heroic_Nightmare_Killer reward the user also receiving the Heroic_Onyx_Cloack_of_the_Grandmaster reward:
Prizes:Heroic_Nightmare_Killer:Material:DIAMOND_SWORDGlow:trueAmount:1Name:'&6&lHeroic Nightmare Killer'Enchantments: - FIRE_ASPECT;2 - DAMAGE_ALL;5 - DURABILITY;3Lores: - &6DisarmorI - &6DoubleStrike I - &6&oAnonyx blade with dark legacy, - &6&orumorhas it this bald only - &6&oexistsfor a few fleeting moments - &6&obeforeand after each assassination. NBTtags: '{Enchantments:[{id:"minecraft:fire_aspect",lvl:2s},{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:unbreaking",lvl:3s}],Damage:0,slots:2,"ae_enchantment;doublestrike":1,"ae_enchantment;disarmor":1}'
GiveConfiguratedItem:trueLinkedRewards: - Heroic_Onyx_Cloack_of_the_GrandmasterCommands: []Chance:10.0Damage:0Heroic_Onyx_Cloack_of_the_Grandmaster:Material:DIAMOND_CHESTPLATEGlow:trueAmount:1Name:'&6Heroic Onyx Cloack of the Grandmaster'Enchantments: - PROTECTION_PROJECTILE;4 - PROTECTION_ENVIRONMENTAL;5 - DURABILITY;3Lores: - &bShockwaveII - &eRagdollIII - &6OverloadI - &6&oAwell kept, leather black cloak. NBTtags: '{Enchantments:[{id:"minecraft:projectile_protection",lvl:4s},{id:"minecraft:protection",lvl:5s},{id:"minecraft:unbreaking",lvl:3s}],"ae_enchantment;ragdoll":3,Damage:0,slots:3,"ae_enchantment;shockwave":2,"ae_enchantment;overload":1}'
GiveConfiguratedItem:trueLinkedRewards: []Commands: []Chance:0Damage:0