Levels and rewards
How much XP each level needs, the free and premium reward on every level, every reward type, and claiming.
Every season has its own levels.yml. It sets how many levels there are, how much Battle Pass XP each one needs, and what a player gets on the free track and the premium track at each level.
XP per level
season-version: 1
max-level: 50
xp-per-level: 1000
levels:
1:
required-xp: 500
2:
required-xp: 600| Key | What it does | Default |
|---|---|---|
max-level | Highest level a player can reach this season. Any number. | 100 |
xp-per-level | XP needed for any level that does not set its own required-xp | 1000 |
levels.<n>.required-xp | XP needed to go from level n - 1 to level n | xp-per-level |
Players start every season at level 0. required-xp is counted from the previous level, not from zero, and XP past a level carries straight into the next one:
- One gain can give several levels.
levels.level-up-mode: COMBINEDinconfig.ymlsends one message for all of them,EACHsends one per level. - At max level, extra XP is ignored, and the XP placeholders show the word from
words.maxin the language file ("Max"). - Level numbers outside 1 to
max-levelare skipped with a console warning.
On every level up the player gets a chat message, a title and the level-up sound. Each one can be turned off in config.yml under levels: (chat, title, sound), and the text is in the language file under level-up.
Free and premium rewards
Each level can have a free: block, a premium: block, both, or neither. Each block has a display (the item shown in the reward track) and rewards (what the player actually gets).
levels:
10:
required-xp: 1000
icon:
material: EXPERIENCE_BOTTLE
free:
display:
material: SUNFLOWER
name: "<#f2b544>5,000$ and 1 key"
rewards:
money: 5000
commands:
- "crate key give %player% common 1"
premium:
display:
itemsadder: "myitems:legendary_relic"
name: "<#f2b544>15,000$, 3 keys and a relic"
lore:
- "<#ffd98a>✦ <white>Item: <#f2b544>Legendary Relic"
rewards:
money: 15000
commands:
- "crate key give %player% legendary 3"
items:
- itemsadder: "myitems:legendary_relic"
amount: 1| Key | What it does |
|---|---|
icon | Item used for this level's indicator in the reward track, when the pass menu uses use-level-icon: true |
free.display / premium.display | Item shown in the reward track. Its name and lore are what %reward_name% and %reward_lore% show in the pass menu. |
free.rewards / premium.rewards | What the player gets on claiming, see below |
A track with no rewards (or empty ones) has nothing to claim, and the reward track shows its none look for that slot, which is empty by default.
Reward types
The same reward format is used in three places: level rewards, quest rewards and shop give, so you only learn it once. Any number of these can go in one block.
| Key | What it gives |
|---|---|
items | A list of items. Each takes material or itemsadder, amount, name, lore, enchantments, glow, custom-model-data, hide-flags and skull-owner. Larger amounts are split into full stacks. |
commands | Console commands. %player% and %uuid% are filled in. |
player-commands | Commands run as the player |
money | Vault money |
currency and amount | One currency from currencies.yml, for example currency: shop-points and amount: 50 |
currencies | Several currencies at once, currencies: {shop-points: 50, gems: 5} |
xp | Vanilla experience points |
xp-levels | Vanilla experience levels |
permissions | Permission nodes, given through Vault. Needs a Vault permission plugin, otherwise skipped with a console warning. |
messages | MiniMessage lines sent to the player. %prefix% works here. |
battlepass-xp | Battle Pass XP |
battlepass-levels | Whole Battle Pass levels |
summary | Lines shown in the received rewards list instead of the automatic ones. Use it for rewards that are only commands, for example summary: ["1 Legendary Crate Key"]. |
Item details:
items:
- material: GOLDEN_HELMET
name: "<#f2b544><bold>Season 1 Crown"
lore:
- "<#ffd98a>♛ <white>Reached level 50 in Season 1"
enchantments:
unbreaking: 3
protection: 4
glow: true
- itemsadder: "myitems:legendary_relic"
amount: 1enchantmentstakes a map (sharpness: 5) or a list (- "sharpness:5"), with vanilla names ornamespace:keyfor custom ones.itemsadderreplacesmaterialwhen ItemsAdder is installed and the id exists. If not, thematerialis used and the console warns once per id.hide-flagsis on by default and hides the attribute lines.
Reward commands also get %level% and %season% when they come from a level reward.
Inventory full
When reward items do not fit, rewards.inventory-full in config.yml decides what happens:
| Value | What happens |
|---|---|
DROP | The items drop at the player's feet (default) |
PENDING | The items are saved for later. They are handed over on the player's next join, or when they run /battlepass claimall. |
Claiming
A reward is claimable once the player has reached its level and, for the premium track, owns premium. Each reward is claimed once per season.
- One reward: click it in the reward track. Plays
claim-reward. - Everything: the Claim All button in the main menu or the reward track, or
/battlepass claimall. It claims every free reward waiting, and every premium reward if the player owns premium, sends one summary message and playsclaim-all. Nothing waiting playserrorand says so. - Under the claim message the player sees what they got: items with amounts, money, currencies, experience and Battle Pass XP or levels, split into free and premium. Claim All adds up the same rewards across levels. Turn it off with
rewards.list-receivedinconfig.yml, and change the lines underclaim.receivedin the language file. - A player who gets premium after levelling can claim every premium reward for the levels they already reached.
- Clicking a reward above their level, or a premium reward without premium, tells them why and plays
error.
Each claim is written to the database before anything is given, so a crash or a fast double click can never give a reward twice. See Storage for the full order.
/battlepass claimall needs battlepass.claim. Clicking rewards in the menu works for anyone who can open it.