Configure milestones
Use trigger-level-player.yml to run commands when pass levels are reached, without requiring a click to claim:
enabled: true
triggers:
marco_10:
enabled: true
level: 10
once-per-season: true
commands:
- 'give {player} minecraft:diamond 2'
marco_25:
enabled: true
level: 25
once-per-season: true
commands:
- 'mbattlepass addpoints {player} 100'
Enable enabled at the root and in each milestone. With once-per-season: true, the prize is awarded once per season; with false, crossing the level again can award it again. Keep IDs to preserve recorded triggers.
Going from level 8 to 30 crosses milestones 10 and 25. setlevel and addlevel can also grant these prizes. Reloading while already above a milestone does not award it retroactively.
| Placeholder | Information |
|---|---|
| {player} / %player% | Player name |
| {level} | Milestone level |
| {old_level} / {new_level} | Previous and new levels |
| {season_id} / {season_name} | Season ID and name |
| {season_level} | Numeric season identifier |
Use /mbattlepass reset leveltrigger SeuNick to clear trigger records; a milestone still needs to be crossed to execute. An automatic prize and a clickable reward at the same level can both be received.