SeasonForge logoSeasonForge

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
KeyWhat it doesDefault
max-levelHighest level a player can reach this season. Any number.100
xp-per-levelXP needed for any level that does not set its own required-xp1000
levels.<n>.required-xpXP needed to go from level n - 1 to level nxp-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:

A bar of levels 1 to 4 sized by their required-xp of 500, 600, 700 and 800. 1,500 XP fills levels 1 and 2 and leaves 400 of 700 towards level 3.
  • One gain can give several levels. levels.level-up-mode: COMBINED in config.yml sends one message for all of them, EACH sends one per level.
  • At max level, extra XP is ignored, and the XP placeholders show the word from words.max in the language file ("Max").
  • Level numbers outside 1 to max-level are 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
KeyWhat it does
iconItem used for this level's indicator in the reward track, when the pass menu uses use-level-icon: true
free.display / premium.displayItem shown in the reward track. Its name and lore are what %reward_name% and %reward_lore% show in the pass menu.
free.rewards / premium.rewardsWhat 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.

KeyWhat it gives
itemsA 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.
commandsConsole commands. %player% and %uuid% are filled in.
player-commandsCommands run as the player
moneyVault money
currency and amountOne currency from currencies.yml, for example currency: shop-points and amount: 50
currenciesSeveral currencies at once, currencies: {shop-points: 50, gems: 5}
xpVanilla experience points
xp-levelsVanilla experience levels
permissionsPermission nodes, given through Vault. Needs a Vault permission plugin, otherwise skipped with a console warning.
messagesMiniMessage lines sent to the player. %prefix% works here.
battlepass-xpBattle Pass XP
battlepass-levelsWhole Battle Pass levels
summaryLines 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: 1
  • enchantments takes a map (sharpness: 5) or a list (- "sharpness:5"), with vanilla names or namespace:key for custom ones.
  • itemsadder replaces material when ItemsAdder is installed and the id exists. If not, the material is used and the console warns once per id.
  • hide-flags is 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:

ValueWhat happens
DROPThe items drop at the player's feet (default)
PENDINGThe 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 plays claim-all. Nothing waiting plays error and 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-received in config.yml, and change the lines under claim.received in 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.

On this page