-
Notifications
You must be signed in to change notification settings - Fork 25
AdvancedPriority Examples
Ben edited this page Aug 27, 2023
·
4 revisions
AdvancedPriority goes through each sub reward and finds the first one it can execute, works with all requirements, including chances (Go in order of rarest chance rewards first, and most likey rewards last)
Permission example, gives first reward based on permission, useful for giving certain ranks different rewards
Rewards:
AdvancedPriority:
# Sub reward, can have more than 1
Reward1:
RequirePermission: true
Permission: 'permhere'
Commands:
- say Reward1
Reward2:
RequirePermission: true
Permission: 'permhere2'
Commands:
- say Reward2
RewardNormal:
Money: 100
Chance examples:
Rewards:
AdvancedPriority:
# Sub reward, can have more than 1
Reward1:
Chance: 60
Commands:
- say Reward1
Reward2:
Chance: 30
Commands:
- say Reward2
RewardNormal:
Money: 100
AdvancedPriority:
Reward1:
Items:
Item1:
Material: DIAMOND
Amount: 1
Chance: 5
Reward2:
Items:
Item1:
Material: IRON_INGOT
Amount: 10
Chance: 50
Fallback:
Items:
Item1:
Material: DIRT
Amount: 64
AdvancedPriority:
Rarest:
Chance: 1
Items:
item:
Material: DIAMOND
Amount: 5
Messages:
Player: 'You got rare item'
SecondRarest:
Chance: 5
Items:
item:
Material: DIAMOND
Amount: 1
Messages:
Player: 'You got second rare item'
Fallback:
Items:
item:
Material: DIRT
Amount: 1
Messages:
Player: 'you got normal item'