-
-
Notifications
You must be signed in to change notification settings - Fork 82
AdvancedPriority Rewards
AdvancedPriority is available in VotingPlugin 7.1.1 through its bundled AdvancedCore reward system. It evaluates child rewards in YAML order and runs the first child whose requirements pass.
Use it for mutually exclusive rank tiers, ordered chance attempts, or a final fallback.
A standalone reward file starts directly with AdvancedPriority:
# plugins/VotingPlugin/Rewards/MyReward.yml
AdvancedPriority:
VIP:
RequirePermission: true
Permission: 'server.vip'
Commands:
- 'give %player% diamond 3'
Default:
Money: 50Reference it without .yml:
Rewards:
- MyRewardAn inline reward is already inside a plugin configuration's Rewards section:
VoteSites:
ExampleSite:
Rewards:
AdvancedPriority:
VIP:
RequirePermission: true
Permission: 'server.vip'
Money: 100
Default:
Money: 50Do not add an extra top-level Rewards: wrapper inside a standalone reward file. Conversely, do not omit the surrounding Rewards: key when defining the logic inline in VoteSites.yml, SpecialRewards.yml, or another VotingPlugin section.
AdvancedPriority:
Owner:
RequirePermission: true
Permission: 'server.owner'
Money: 500
VIP:
RequirePermission: true
Permission: 'server.vip'
Money: 200
Default:
Money: 50A player with both permissions receives only Owner because it appears first. Put the most specific/exclusive requirements first and an unrestricted fallback last.
A negated permission can be written as Permission: '!server.vip' when that requirement is appropriate.
Each Chance is a separate roll made only if earlier entries fail:
AdvancedPriority:
First:
Chance: 60
Money: 100
Second:
Chance: 30
Money: 50
Fallback:
Money: 10The effective results are:
-
First: 60% -
Second: 40% Γ 30% = 12% -
Fallback: 40% Γ 70% = 28%
These are not weighted entries. Use SpecialChance or the appropriate random-reward feature when you need one weighted selection instead of ordered independent checks.
AdvancedPriority:
Rare:
Chance: 5
Items:
Diamond:
Material: DIAMOND
Amount: 1
Common:
Chance: 50
Items:
Iron:
Material: IRON_INGOT
Amount: 10
Fallback:
Items:
Dirt:
Material: DIRT
Amount: 64The iron roll is reached only after the diamond roll fails.
In an inline configuration, rewards placed beside AdvancedPriority are independent and also run:
Rewards:
AdvancedPriority:
VIP:
RequirePermission: true
Permission: 'server.vip'
Money: 100
Default:
Money: 25
Commands:
- 'say %player% received a vote reward'The command runs after the AdvancedPriority selection. Put a fallback inside AdvancedPriority when it should run only if every earlier child fails.
Each child can use normal reward requirements and effects, including permission, world, chance, online/offline, server restrictions, items, money, commands, and messages. Requirements that depend on a live player cannot pass while the reward is processed without the required online context.
Keep child names unique, preserve intentional YAML order, and test one player for every branch before deploying a complex reward.
- Vote Milestones
- Vote Streak System
- Vote Reminders β Current System
- Legacy Vote Reminding
- Vote Broadcast System
- Vote Logging
- Webhooks
- Time Changes
- Month Date Totals
- VoteShop
- Rewards Overview β Start Here
- Special Rewards
- Reward System Concepts
- Reward File Format
- Where to Set Rewards
- All Reward Possibilities
- AdvancedPriority Rewards
- Reward Examples
- Delayed Reward Command
- World Example
- VotingPlugin-Specific Rewards
- Commands & Permissions
- Signs
- API
- PlaceholderAPI Placeholders
- Minecraft Server Lists
- Bedrock Player Support
- Transferring Data Storage