Quests
The Quests module: quests per day, week or own dates with rewards, counters fed by site and game server events, and an account level built on experience.
Quests adds goals to the site: 50 kills this week, signing in five days in a row, an hour of play a day. The site counts progress from site and game server events by itself and grants the reward once the goal is reached. Experience from rewards and actions raises the account level, and levels can carry prizes too. BattlePass, achievements and clan points all run on the module's counters.

| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron tasks |
|---|---|---|---|---|---|
| Flute 2.0, the Rewards module | any; game metrics come from servers over GameLink | admin.quests, admin.quests.view, admin.quests.manage, admin.quests.progress, admin.quests.adjust, admin.quests.elevate | "Quests" (quests.board) | /quests — "My quests" | three, below |
Where the module shows up
| Place | What is there |
|---|---|
/quests | the "Quests" page with the tabs "Now", "One-time" and "History". The "Now" tab groups quests under "Today", "This week" and "Season". A guest sees the board without "History". The site menu item appears by itself |
| Profile on the site | the "Quests" tab: players see their own, staff with admin.quests.progress see anyone's |
| Profile "Overview" | the "Account level" card while the level is on |
| Player card on the site | a line with the level and experience |
| Site header | the "Quests" counter with the number of rewards waiting to be claimed. Off by default |
| Studio | the "Quests" block for any page, see Studio blocks |
| In-game menu | progress of running quests and buttons to take rewards, see game menu |
| AdminQuests | the quest catalogue, the account level and players' progress |
| AdminQuestsSettings | module settings, at /admin/modules/Quests/settings |
| Player card in the admin | the "Quests" tab, the "Correct a counter" and "Correct experience" actions |
| The Rewards "Grants" journal | quest rewards with the "Quests" source |
Install and first setup
Install the module
Quests is installed together with Rewards. A "Quests" row appears in the admin, in the "Activities" group.
Check the servers and the scheduler
Game counters grow only on servers running the GameLink plugin; see connecting a server for how to install it. Progress is settled once a minute by the "Quests: settle progress" task, so the scheduler has to run.
Create the first quest
On AdminQuests press "New quest". An example follows below.

The list groups quests into "Daily", "Weekly", "With own dates", "One-time" and "Switched off". Each card shows how many players are "in progress", how many are waiting "to claim" and how many "claimed". "Players' progress" lists up to 50 players, the ones closest to the goal first.
A weekly goal for in-game kills
The quest 50 kills on CS2 renews every Monday, counts kills only on the CS2 servers and gives 200 coins that the player claims.
Open "New quest"
In the "What players see" block fill in "Name", for example 50 kills on CS2, and "Description". A square "Medal" is shown instead of the "Icon".
Set the goal
In the "What to do" block pick "Kills" in "What is counted", keep "Sum" in "How days add up" and type 50 in "Goal". In "Period" press "Week" and leave "Comes back every period" on. Leave "Starts" and "Ends" empty.
Limit the servers
Open "Servers, sequence and conditions" and tick the CS2 servers in "Servers". An empty field means every server.
Add the reward
In the "Reward" block set "How the reward is given" to "The player claims it". In "Reward 1" pick the "Site coins" type and set "Quantity" to 200. Reward types are described in Rewards.
Save
After "Save" you see "The quest is created and players already see it."

A week runs Monday to Sunday in the site's time zone, not the server's. A kill counts when the server is among the "Servers that count" in the settings and among the quest's servers, and the server has at least "Least players online" players (4 by default). A counter never gains more than 300 kills a day; this ceiling is changed in the "Daily ceilings" group.
Once the goal is reached, the player gets the "A reward is waiting" notification and presses "Claim" on the quests page, on the profile tab, in the in-game menu or in the bot. With "Given at once" the reward arrives by itself within a minute. After the week ends, an unclaimed reward stays under "Rewards from past periods" for "Days to claim a reward" (7 by default), then it is gone.
Progress also builds up for a player with no site account; the reward comes after linking. A "Balance top-up" reward on a game metric is saved only with a confirmed login, while coins, roles and experience need no confirmation.
Account level
The account level is a scale of experience. Experience comes from rules, such as for every kill, and from the "Experience" reward of quests. A level can carry a reward.
Turn the level on
On AdminQuestsSettings turn on "Account level" in the "Account level" group. While it is off, no experience is given.
Open the editor
Above the quest catalogue there is an "Account level" block with a "Set up" button. The block appears once the catalogue holds at least one quest.
Set the scale
In "Level scale" type the experience each level starts at, one number per line. The default is 100, 250, 500, 1000, 2000. The numbers must grow strictly.
Add experience rules
In "What gives experience" pick a metric in "Rule 1", then "Experience per unit" and "Daily ceiling" (0 means no ceiling). For example, "Kills", 2 experience and a ceiling of 200. The unit of "Play time" is a second.
Assign level rewards
In "Level rewards" set "For which level" to a level number of the scale and pick the reward. Press "Save" and you see "The account level is saved."

To make a quest give experience, pick the "Experience" type for its reward and type these lines into "Parameters":
track=account
amount=100Such a reward can be saved only while the level is on and the level editor has been saved once. Players see their level on the "Account level" card in the profile "Overview" and get the "New level" notification when they reach one.
Links with other modules
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. Quests cannot be installed without Rewards, since quest and level rewards go through it.
BattlePass and Achievements cannot be installed without Quests: a pass season is a Quests experience track, and an achievement condition is a Quests metric. Clans turns kills and play time from Quests into clan points, and Giveaways gives tickets for the quests of a giveaway. Those modules edit their quests on their own screens; the Quests catalogue holds only the site's own quests.
Metrics
A metric is a counter that a quest, an experience rule or an achievement condition is built on. It is picked in the "What is counted" field. Quests ships these metrics:
| Metric | Key | What it counts |
|---|---|---|
| "Kills" | game.kills | kills on the counted servers, 300 a day at most |
| "Headshots" | game.headshots | kills with a headshot, 150 at most |
| "Assists" | game.assists | helping a teammate get a kill, 300 at most |
| "Play time" | play.seconds | time on a server; the goal is set in minutes, 8 hours a day at most |
| "Linked game accounts" | account.identities | game accounts linked to the profile |
| "Account protection steps (e-mail, two-factor)" | account.verified | a confirmed email and two-factor sign-in turned on |
| "Days signed in" | account.logins | days the player signed in to the site |
| "Draws" | rewards.spins | spins of Rewards draws |
| "Comments" | site.comments | comments on news and pages; a removed one is subtracted |
| "Balance top-ups" | wallet.topups | total top-ups; a refund is subtracted |
| "Purchases from the balance" | wallet.purchases | total spent from the balance |
| "Level of a track" | track.level:<key> | the level on an experience track, such as track.level:account |
The first four come from game servers and are kept per server, so only they can be limited with "Servers". Other modules add their metrics only while Quests is installed and on. Without Quests those modules work the same, the metric is just missing from the list.
| Module | Metrics |
|---|---|
| BattlePass | "Battle pass rewards taken" (battlepass.claims), "Battle pass clicker points" (clicker.score) |
| DailyBonus | "Daily bonus: bonuses taken" (daily.claims), "Daily bonus: length of the streak" (daily.streak) |
| Giveaways | "Giveaways joined" (giveaways.entered), "Giveaways won" (giveaways.won) |
| Votes | "Votes for the server" (votes.count) |
| SocialTasks | "Subscription tasks done" (social.tasks) |
| Referral | "Invited friends (confirmed)" (referral.friends) |
| Forum | "Forum posts" (forum.posts) |
| PlayerSetup | "Published a setup" (setup.published) |
When a module is switched off, its metric leaves the list, and a quest on it is marked "The metric is not available" in the catalogue and stops counting.
Links with game servers
Quests takes its game metrics from the events the GameLink plugin sends to the site. The Stats module is not needed for this: Quests listens to the same events itself.
| Event from the server | Metric |
|---|---|
| a player's death with a killer | "Kills" for the killer, plus "Headshots" for a headshot |
| a death with an assister | "Assists" for the assister |
| a player in the server's online list | "Play time": the site counts sessions itself from syncs |
| a game account linked on the site | "Linked game accounts" |
Deaths are sent by the plugins for CS2, Source, CS 1.6, Garry's Mod, Rust, SA-MP, FiveM and Minecraft. The CS2 plugin sends the assister, and the CS2, Rust and FiveM plugins send headshots. Sending deaths is switched on in the plugin config: the stats module in CS2, Report player deaths in Rust, report_deaths in GMod and SA-MP, flute_report_deaths in FiveM.
A suicide or a death at the hands of the same account does not count. Both the killer and the victim must be known to the site by an id the server verifies, such as a SteamID. Players the site knows only by a nickname (Minecraft offline mode, SA-MP nicknames, players without Steam) get neither kills nor play time. The site does not know bots, so their deaths do not count unless "Count kills of players the site does not know" is on.
Settings
AdminQuestsSettings| Field | What it changes | Default |
|---|---|---|
| "Servers that count" | which servers feed game metrics; empty means all | empty |
| "Least players online" | below this online count kills are not counted; 0 means no limit | 4 |
| "Days to claim a reward" | how long an unclaimed reward waits after the period | 7 |
| "Days daily counters are kept" | counters of one-time quests are kept for good | 400 |
| "Count kills of players the site does not know" | count victims the site has not seen in a sync | off |
| "Account level" | experience, levels and their rewards | off |
| "Name of the level" | empty means "Account level" | empty |
| "Quests page" | a separate /quests page | on |
| "Quests" tab on the profile | off: quests only in the block | on |
| "Quests in the game menu" | progress and claim buttons in the in-game menu | on |
| "Quest counter in the site header" | seen by a player with rewards waiting | off |
| "Order of the board" | "As set in the catalogue", "Closest to the goal first" or "Ending soonest first" | "As set in the catalogue" |
"Quests block on pages" and "Show the block to guests" are on, "Quests in the home block" is 4. "Level card in the profile overview" and "Level line on the player card" are on. "Name of the tab" and "Heading of the home block" are empty, which shows "Quests". "Completed quests per page" is 20, and the quests of a group before "Show more" are 6.
"The day's quests as a checklist" and "Picture in the quests header" are on, "Day streak" is off. "Your own header picture" is empty, so the header has no picture. The "Where to spend" block takes one Name | /path per line, and an empty field removes it. "Questions and answers under the quests" is on, and "Your own questions and answers" takes one Question | Answer per line.
The three switches "Quest completed, reward given", "A reward waits for the button" and "New account level" are on. Their texts are edited in AdminNotifications, group "Quests".
"Daily ceilings" has a field for every metric with a ceiling: "Play time" 28800 (in seconds, that is 8 hours), "Kills" 300, "Headshots" 150, "Assists" 300. A counter gains no more than that in a day.
Permissions
| Permission | What it grants |
|---|---|
admin.quests | everything below |
admin.quests.view | see the catalogue of quests and how players progress |
admin.quests.manage | create, change and switch off quests and the account level, module settings |
admin.quests.progress | read the progress of a player, the "Quests" tab of the card |
admin.quests.adjust | correct a player's counters and experience |
admin.quests.elevate | save money rewards on game metrics while login confirmation is switched off on the site |
Background tasks
Shown in AdminScheduler.
| Task | How often |
|---|---|
| "Quests: settle progress" | every minute |
| "Quests: close ended periods" | every hour |
| "Quests: drop old counters" | once a day, at 04:20 |
For developers
A module declares its metric in boot(), only while Quests is on: app(MetricRegistry::class)->register(new Metric('shop.spent', 'shop.metric.spent', unit: 'minor', subject: 'user')). The key looks like <area>.<name>, up to 48 characters, and the unit is count, seconds, minor or points. A metric fed by a game server (trusted: false) needs a dailyCap. A value kept in someone else's storage is read by a Contracts\MetricReader passed as the second argument of register().
A counter grows through Progress::add($subject, $metric, $delta, $eventRef): a repeated $eventRef adds nothing. The reward type is quests.xp, the reward source is quests. Events: flute.quests.completed, flute.quests.claimed, flute.quests.level_reached.
How the core side works: Events and listeners, Another module in the provider, Extension points.
Troubleshooting
For any other message, use the error lookup.
Game quests are not counted
No server sends kills and play time to the site. Install GameLink following these steps.
Too few players online
Kills are not counted while a server has fewer players than "Least players online". The "Change the threshold" button opens that field, and 0 removes the limit.
| Message | What to do |
|---|---|
| "The metric is not available" | switch on the module that declares the metric in "Extensions" |
| "This metric is not kept per server, so it cannot be limited to servers." | clear "Servers" on the quest |
| "A season quest needs an end date." | fill in "Ends" |
| "A reward that turns into balance on a metric fed by a game server is saved only with a confirmed login. Switch login confirmation on in the security settings or get the right "Money rewards on game metrics"." | switch login confirmation on or grant admin.quests.elevate, or give coins instead of balance |
| "The account level is switched off in the quest settings: there is nowhere to add experience." | turn on "Account level" in the settings |
| "This track does not exist." | save the "Account level" editor, then the "Experience" reward |
| "Level thresholds must grow strictly." | fix the "Level scale" |
| "Sign in and link your game account to take part." | the player signs in and links a game account |