Skip to content

Battle Pass ​

Battle Pass Introduction ​

Battle pass added in 4.0.0+

text
New command /plk battlePass

The battle pass runs in seasons. Players earn battle pass exp by completing tasks and claim each level's reward once they reach its exp threshold.
Rewards come in a free track and a premium track; the premium track is unlocked by permission.

Workflow ​

  1. Add battle pass exp to any task with /plk addReward battlePassExp [quantity]
  2. Players accumulate battle pass exp automatically after completing tasks
  3. Players open the battle pass with /plk battlePass, click a level to claim it individually, or use the one-click claim button
  4. When a season ends, the next one opens automatically according to autoRotate; missing reward configs are copied from the current season file

Season Config (config.yml) ​

yaml
battlePass:
  # Season period: weekly=Mon-Sun / monthly=1st-end of month / custom=custom days, default monthly
  mode: monthly
  # Only for mode=custom: days per season, default 30
  days: 30
  # Only for mode=custom: first season start, format yyyy-MM-dd, empty = battle pass disabled; later seasons continue from the previous end
  startTime: ""
  # Whether the next season starts automatically after the current one ends
  autoRotate: true
  # Permission unlocking the premium track
  premiumPermission: playertask.bp.premium

Season Reward Config (season/1.yml) ​

The file name is the season number; the first season reads season/1.yml.

yaml
seasonName: "&aSeason 1"
levels:
  # Cumulative exp required per level; a level's reward can be claimed once the threshold is reached
  exp:
    1: 100
    2: 200
  # Free track rewards, rewardIds reference task reward ids, multiple allowed
  free:
    1:
      rewardIds:
        - 1
    2:
      rewardIds:
        - 2
        - 3
  # Premium track rewards, requires the battlePass.premiumPermission from config.yml
  premium:
    1:
      rewardIds:
        - 4

Each level optionally accepts name/lore/material/customModelData; when unset a Level N name and reward info are generated automatically, and levels without any node are only placeholders.

Battle Pass GUI (gui/battlePass.yml) ​

  • The top row is the free track, the bottom row the premium track, and the glass panes in between show each level's exp requirement and claim status
  • The one-click claim button claims all available rewards and auto-pages to the first claimable level afterwards
  • The info item shows the season name, current level, current exp and season time remaining

Administration ​

  • /plk bpExp [type] [player name] (quantity) operates player battle pass exp, types: give/set/take/giveAll/setAll/takeAll/look