Commands
Every player and admin command, with its arguments, permission and what it does.
Everything is under /battlepass, which also answers to /bp, /pass and /seasonforge. Every argument tab completes: online players, quest ids of the running season, season ids and quest types.
Player commands
| Command | What it does | Permission |
|---|---|---|
/battlepass | Opens the main menu | battlepass.use |
/battlepass quests | Opens the quests menu | battlepass.quests |
/battlepass pass | Opens the reward track | battlepass.use |
/battlepass shop | Opens the Battle Pass shop | battlepass.shop |
/battlepass premium | Opens the premium menu | battlepass.premium.buy |
/battlepass claimall | Hands over saved reward items, then claims every reward waiting | battlepass.claim |
/battlepass help [page] | The player help | battlepass.use |
The help is split into pages with clickable previous and next arrows, and only lists commands the player can use. While no season is running, the menu commands show the no season message or menu instead.
Admin commands
All admin commands are under /battlepass admin. On their own, /battlepass admin and /battlepass admin help [page] show the admin help, listing only the commands the sender can use.
| Command | What it does | Permission |
|---|---|---|
admin reload | Reloads every file: config, languages, sounds, currencies, menus and seasons | battlepass.admin.reload |
admin xp give <player> <amount> | Adds Battle Pass XP, with level ups | battlepass.admin.xp |
admin xp remove <player> <amount> | Takes XP away, dropping levels if it goes below the current one | battlepass.admin.xp |
admin xp set <player> <amount> | Sets the XP into the current level. More than the level needs rolls into the next ones. | battlepass.admin.xp |
admin level set <player> <level> | Sets the level, with 0 XP into it | battlepass.admin.level |
admin premium give <player> | Gives premium for the running season | battlepass.admin.premium |
admin premium remove <player> | Takes premium given by purchase or command | battlepass.admin.premium |
admin quest complete <player> <quest> | Completes a quest, with its XP and rewards. The player must be online. | battlepass.admin.quest |
admin quest reset <player> <quest> | Sets a quest back to 0 for this period | battlepass.admin.quest |
admin progress <player> <objective> <amount> [filter] | Adds progress to every running quest of that type. The player must be online. | battlepass.admin.progress |
admin hook <plugin> <player> <result> [id] [mode] | Reports an EventPulse or zRivals result, see Arrow plugin hooks | battlepass.admin.progress |
admin reset <player> | Wipes the player's progress in the running season | battlepass.admin.reset |
admin season start <season> | Starts a season, ending the running one first | battlepass.admin.season |
admin season end | Ends the running season and archives everyone's progress | battlepass.admin.season |
admin season reset [confirm] | Wipes every player's progress in the running season | battlepass.admin.season |
admin season info | The running season, its dates, levels, quests, shop items, the season folders and the hooked plugins | battlepass.admin.season |
admin help [page] | The admin help | any admin node |
Every admin command works from the console, so stores, scripts and other plugins can run them.
Details
Offline players. xp, level, premium, quest reset and reset work on players who are offline, as long as they have joined the server before. quest complete, progress and hook need the player online.
A running season. Every command that changes a player needs a running season. Without one they reply with the no season message.
progress. <objective> is a quest type, built-in (BREAK_BLOCK) or namespaced (myplugin:boss_kill). [filter] is matched against each quest's target, so /battlepass admin progress Steve BREAK_BLOCK 5 diamond_ore moves only quests that target diamond ore (or have no target). From the console it runs quietly, without a reply.
/battlepass admin progress Steve myplugin:boss_kill 1 dragonreset. Wipes the player's level, XP, premium, claims, quest progress and purchases for the running season. Quests with reset: NONE are left alone. There is no undo.
season reset. Asks first. Run it again within 15 seconds, or add confirm. There is no undo.
season end and start. Ending a season keeps its data. season start on a season that already ran picks its progress back up. See Seasons.