Skip to Content
ModulesActivities and rewards

Battle pass

The BattlePass module: a season of levels earned with experience, two lines of rewards on every level, a premium pass bought with the site balance, leader tables with prizes for places and a season clicker.

The battle pass gives your site a season: players earn experience by playing and being active, open levels and take a reward for each one. Every level has two lines, "Free" and "Premium". The second one opens with the premium pass, which a player buys with the site balance or gets from the staff, and it opens every level already passed at once.

The Battle pass page with the road of levels
A season in the admin: the Levels tab with rewards on both lines
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0, the Rewards and Quests modules; optionally Chatany; the game menu and server rewards go through GameLinkadmin.battlepass, admin.battlepass.view, admin.battlepass.adjust, admin.battlepass.grant"Battle pass: the season" (battlepass.season)/pass — "My battle pass""Battle pass: start, end and archive of seasons", every 10 minutes

Where the module shows up

PlaceWhat is there
/pass and the "Battle pass" menu itemthe season, the road of levels, "How to earn experience", "Season leaders", the "Clicker" tab, "Past seasons"
/pass/season/{id}a past season: what it gave and who led it
Profile overviewa season card with the level and the rewards waiting. Only the profile owner sees it
AdminBattle passthe running season on top, then "Drafts" and "Past", the "New season" button
AdminBattle passSettingsmodule settings, at /admin/modules/BattlePass/settings
Player card in the adminthe "Battle pass" tab in the "Quests and rewards" group, the "Season experience", "Give the pass" or "Take the pass back" and "Reset the clicker" actions
AdminReports & requeststhe "Passes after a refunded payment" queue
Game menulevel, experience, the pass and buttons to take rewards, see Game menu
Studiothe "Battle pass: the season" block with the "Season and progress" and "Next rewards" variants
Chata "Battle pass season" card, when the Chat module is installed

The /pass address can be changed in the module settings, and "Name in the menu" sets the menu label.

Install and first setup

Install the module

Install BattlePass from the marketplace as described in first steps. It needs the Rewards and Quests modules and will not install without them. The admin menu gets a "Battle pass" row in the "Activities" group.

Check the scheduler

A background task ends a season on its date, hands out the prizes and archives it. Without the scheduler a season never ends by itself, see Scheduler.

Connect payments

The pass is bought with the site balance, so players need a way to top it up. Until a payment system is connected, the offer page shows the "The pass is bought with balance" hint with an "Add payment method" button. Connecting one is covered in accepting payments.

A season with levels and a premium line

Only one season runs at a time. A new one is built as a draft, and players do not see it until you start it.

Create a draft

Open AdminBattle pass and press "New season". Fill in "Name", for example "Season 1: Desert", "Start" and "End". By default a season lasts 30 days from today. "Cover" in the "Look" card is the picture in the header of the season page.

Set the level scale

A new season builds its scale from three numbers: "Levels" (30), "Experience for the first level" (1000) and "Each next one costs more, %" (5). With these values level 1 starts at 1000 experience, level 2 at 2050, level 3 at 3153 and level 30 at 66,439.

After saving, the full scale is in the "Scale: experience each level starts at" field on the "Settings" tab, and you can edit the numbers by hand. The "Fill the scale" card on the "Levels" tab builds it again. A season has at most 200 levels.

Add experience rules

In "Rule 1: what gives experience" pick a Quests metric such as "Kills", set "Experience per unit" to 10 and "Experience cap per day" to 500. There are up to six rules, the rest wait under "More rules". The unit of "Play time" is a second: 1 experience per unit gives 3600 experience an hour. Players see the rules on the page in "How to earn experience".

"Experience multiplier with the pass", from 1 to 3, multiplies the experience pass holders get from these rules. It leaves other experience alone.

Set the level rewards

On the "Levels" tab click a level. The window has two parts, "Free" and "Premium", each with one reward from the Rewards editor and a "Rarity" that only changes the look. An empty row means that line has no reward. Below is how players see the level. Saving asks you to confirm your sign-in.

The level window with rewards of the Free and Premium lines

Put the pass on sale

On the "Sales" tab press "Add an offer". "Price" is charged to the player's balance. "Bonus levels" moves the player up the scale at once: the rewards open, but no experience is added and the place in the table does not change. Bonus levels are capped at 25% of the scale, which is 7 for 30 levels. "On sale from" and "On sale until" can stay empty, then the offer sells the whole season.

A pass offer: price, bonus levels and sale dates

A season without offers has no premium. You can add several, for example a plain pass and a dearer one with five levels at once, ordered by "Order".

Start the season

Above the tabs are the steps "Level scale", "Level rewards", "Experience rules" and "Pass on sale". Once there is a scale and at least one reward, you see "The draft is ready: the scale and the rewards are set. The season can start." and the "Start season" button. While another season runs, the button is not there. With "Start a season by its date" on, the draft starts by itself when its "Start" comes.

From then on players earn experience and take rewards with "Take" or "Take everything". Every reward goes through Rewards and shows in the "Grants" journal with the "Battle pass" source.

A player buys the pass on the season page: the "Premium pass from …" button opens a window with "What to buy" and "Buy for …". The money comes off the balance, and the pass lasts until the season ends. The premium rewards of every level already passed open at once, and the player gets the "Pass bought" notification.

A season ends by itself when its "End" comes, or earlier from the "…" menu with "End". After that no experience is earned, the season is in the "Handing out" state and rewards can be taken for 14 more days. Then whatever is left is gone and the season is archived.

Adjust experience and give the pass by hand

Compensation for a player or a pass for a contest winner is given from their card in AdminPlayers. The player needs an account on the site.

Add or take experience

In the card's action menu pick "Season experience". Under "What to do" choose "Add" or "Take", fill in "How much experience" and "Reason", which defaults to "Experience corrected on request". At most 100,000 experience changes at once. The action works only in a running season and is logged.

Give the pass

Pick "Give the pass" and keep the reason "Pass granted by the staff" or write your own. The player gets the "You were given a pass" notification. You can give the pass after the season ends too, while it is "Handing out".

Check the result

The card's "Battle pass" tab shows "Level", "Experience", "Waiting to be taken", "Pass" ("Given by the staff" or "Bought") and the rewards taken by level.

For a player who holds the pass, the same place offers "Take the pass back". The price of a bought pass returns to the balance, and the premium rewards already taken are revoked.

If a player refunds the payment that topped up the balance before the purchase, the pass lands in the "Passes after a refunded payment" queue in AdminReports & requests. There you take it back or press "Leave the pass". With "Take the pass back by itself when the payment is refunded" on, the pass is revoked at once, with no queue.

Rewards are handed out by the Rewards module: every grant lands in its "Grants" log, and whatever did not reach the game is retried by the site. Progress is counted by the Quests module, and BattlePass cannot be installed without it: a season is a Quests experience track, its experience rules are built on Quests metrics, and quests in Quests can give season experience with the "Experience" reward.

The module itself adds two metrics to the "What is counted" field: "Battle pass rewards taken" (battlepass.claims) and "Battle pass clicker points" (clicker.score). On them you can build a quest such as taking 10 pass rewards or scoring 5000 clicker points. All metrics are listed in the Quests table.

Links with game servers

Experience for game metrics such as "Play time" or "Kills" is counted by Quests from the data the server sends through GameLink. Without a connected server those rules give nothing. Connecting a server is covered in linking a server to the site.

Server rewards such as a VIP group or a command also reach the game through GameLink, see reward delivery. In the game menu a player sees "Level … of …", experience and the pass, and takes rewards with buttons like "Take level 5 reward" once their site account is linked to the game one. The "Battle pass in the game menu" setting turns this off.

Settings

AdminBattle passSettings
BattlePass module settings, the Season group
FieldWhat it changesDefault
"Battle pass is on"when off, there is no page, no rewards are taken and no pass is soldon
"Show the season to guests"when off, a guest sees only the invitation to sign inon
"Card in the profile"the season card on the profile overviewon
"Battle pass in the game menu"level and rewards in the gameon
"Rows in the table of leaders"0 to 100, at 0 there is no table10
"Sell the pass"when off, offers are hidden and a purchase is refusedon
"Start a season by its date"a draft whose start has come becomes the season by itselfoff
"Take the pass back by itself when the payment is refunded"when off, the pass waits for a decision in the queueoff
"Days to take rewards after the end"0 to 36514
"Rewards per “Take all”"the rest comes with the next press200
"Bonus levels of an offer, % of the scale"the cap for "Bonus levels"25
"Cap of a manual experience correction"how much "Season experience" changes at once100,000
"Notify about a new level", "Notify about the pass"site notifications to the playeron

The texts of the "New pass level", "Pass bought" and "You were given a pass" notifications are edited in notifications.

Permissions

PermissionWhat it gives
admin.battlepasseverything: seasons, levels, offers, tables, module settings. Includes the three below
admin.battlepass.viewsee seasons and the player's "Battle pass" tab
admin.battlepass.adjust"Season experience" and "Reset the clicker"
admin.battlepass.grant"Give the pass", "Take the pass back" and the "Passes after a refunded payment" queue

Starting, ending and deleting a season, saving level rewards and offers, adjusting experience, giving or taking back the pass: before each of these the admin asks you to confirm your sign-in.

Background tasks

Shown in AdminScheduler.

TaskHow often
"Battle pass: start, end and archive of seasons"every 10 minutes

The task ends a season on its date, hands out the prizes for places, archives a season once its claim window closes and starts a draft by its date when that is on.

For developers

A season keeps its experience and scale in a Quests track with the key bp:<season id>. Rewards go through Rewards with the battlepass source. Events: flute.battlepass.reward_claimed, flute.battlepass.pass_purchased, flute.battlepass.season_finished. Webhooks: "A battle pass was bought" (battlepass.pass_purchased) and "A battle pass season ended" (battlepass.season_finished), see Webhooks.

How the core side works: Events and listeners.

Troubleshooting

For any other message, use the error lookup.

No experience is earned

The running season has no experience rule. Open the season's "Settings" tab and pick a metric in "Rule 1: what gives experience".

The season is running: thresholds of reached levels and rewards somebody took cannot change.

In a running season you can change thresholds of levels nobody has reached yet and rewards nobody has taken. Everything else stays as it was.

MessageWhat to do
"The season cannot start: it takes a draft with levels and an end date in the future."fill the scale and move "End" forward
"Another season is running: end it first."end the running season or wait for it to end
"Each number must be bigger than the one before, but … comes after …."the numbers of the scale must grow
"There can be at most … bonus levels."lower "Bonus levels" or raise "Bonus levels of an offer, % of the scale"
"The pass is not sold now."the season has no enabled offer within its sale dates, or "Sell the pass" is off
"The balance is … short."the player needs to top up the balance
"No experience was added: the season is not running or the account is restricted."experience can be adjusted only in a running season and for an account that is not blocked
"Rewards that could not be taken back: …. The pass no longer works, the money is not returned."the revoke repeats by itself; to return the money now repeat "Take the pass back" with "Return the money anyway"

Next

On this page