Achievements
The Achievements module: a catalogue of achievements on Quests metrics, tiers and rarity, points and a leaderboard, a profile showcase, a badge at the name and awards by hand.
Achievements adds an "Achievements" section to the site: players earn badges for time on the servers, kills, things they do on the site, or straight from the staff. Every achievement has a rarity and points, the points make a leaderboard, and players put their best badges into the profile showcase and wear one at their name.


| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron tasks |
|---|---|---|---|---|---|
| Flute 2.0, the Rewards and Quests modules | any; game conditions are counted through GameLink | admin.achievements, admin.achievements.view, admin.achievements.award | "Achievements: catalogue" (achievements.catalog), "Achievements: leaderboard" (achievements.leaders), "Achievements: latest awards" (achievements.recent) | /achievements — "My achievements" | "Achievements: reconcile counters and lost awards", once a day |
Where the module shows up
| Place | What is there |
|---|---|
/achievements | the "Achievements" section: "My progress", the catalogue with the "All", "Mine", "Not yet" filter, the "Leaderboard" for "All time" or "30 days", "Latest awards" |
/achievements/<id> | the page of one achievement: "Reward", "Tiers", "Earned by", "Recently earned by" |
| Profile on the site | the "Achievements" tab with the "Earned", "In progress" and "Showcase" blocks |
| Profile overview | the "Achievements" card: showcase, count, points and place |
| Mini profile | the "Achievements" line with the count and points, badges from the showcase |
| Name on the site | the badge the player picked with "Wear at name" |
| Profile settings | the "Achievements" section with the "Show my achievements to others" switch |
| AdminAchievements | the catalogue, "Categories", the "Ready set" and "New achievement" buttons |
| AdminAchievementsSettings | module settings, at /admin/modules/Achievements/settings |
| Player card in the admin | the "Achievements" tab with "Awards" and "Progress", the "Give an achievement", "Revoke an achievement", "Revoke an achievement and its rewards" actions |
| Admin home | "Achievements in 7 days" and a line about achievements nobody has earned for a long time |
| Game menu | "Earned: N of M", points and the latest achievements, see Game menu |

Install and first setup
Install the module together with Rewards and Quests
Achievements cannot be installed without them. Afterwards the admin gets an "Achievements" row in the "Activities" group, and the site gets a section at /achievements.
Add the ready set
In AdminAchievements press "Ready set" and confirm. The module adds about twenty achievements in the "Game", "Account", "Community" and "Special" categories: "First hour", a kill ladder from "Shooter" to "Server legend", "A week with us" and more. Achievements on DailyBonus, Votes and SocialTasks metrics are added only if those modules are installed. The set has no rewards, you add them yourself.
Link the game servers to the site
Play time, kills and headshots come from the servers through GameLink. If no server sends them, the catalogue shows "Game achievements are not given". How to install the plugin is described in connecting a server.
Check the scheduler
Once a day the module reconciles its counters and gives achievements that got lost on the way. The task runs only if the scheduler starts once a minute.

A server kill ladder with a reward
The tiers of one ladder share a key in the "Series" field. A player gets the second tier only once they hold the first. The ready set already uses the kills series, so give your ladder a new key, for example retake.
Create the first tier
Press "New achievement". Under "How it looks" fill in "Key" retake.kills.500 (it cannot change later), "Title" and "Description: the condition in words", and set "Rarity" to "Common".
Place it in the ladder
Under "Place in the catalogue" enter "Series" retake and "Tier" 1, pick a "Category" and set "Leaderboard points". The field hint suggests 5 for common, 15 for rare, 40 for epic and 100 for legendary.
Set the condition
Under "Condition" keep "How it is earned" at "By a condition", pick "Kills" in "Metric", "Total of all time" in "How to count", and enter 500 in "Goal". In "Servers" tick the server you want; empty means every server. Save the form and you see "Achievement saved."
Create the second tier with a reward
Repeat the steps with "Key" retake.kills.2000, "Tier" 2 and "Goal" 2000. Under "Reward", in the "Reward 1" row, pick for example "Site coins" or "Server group by name". The reward is given together with the achievement.
Conditions use the same metrics and caps as quests in Quests: a day on one server counts at most 300 kills and 8 hours of play, so a "Goal" of 2000 on one server takes at least a week. The full list of metrics is on the Quests page.
If a reward tops up the balance, the admin asks you to confirm your login on save: "A reward turns into money: confirm your login and save again."
Give an achievement by hand
An achievement for helping the project or winning an event is given by the staff. The ready set has "Project helper" and "Event winner" for this. Your own one is created with "How it is earned" set to "By hand or as a prize".
Open the player
In AdminPlayers open the player's card. The "Give an achievement" action is also in the mini profile on the site.
Give the achievement
Press "Give an achievement", pick the "Achievement", and optionally fill in "Named label" (for example "TOP-1 of the Winter season") and "Comment for the log". You see "Achievement given."
This needs the admin.achievements.award permission, and you cannot give an achievement to yourself. To take one back, press "Revoke an achievement", pick the "Award" and fill in "Reason", which defaults to "Earned unfairly". "Revoke an achievement and its rewards" also takes back what Rewards handed out, and asks you to confirm your login. An achievement earned "By a condition" is never given again on its own after a revoke.
A hand-given achievement can also be a prize in other modules: the reward editor has an "Achievement" type with the "Achievement" and "Named label" fields. Every prize grant creates its own award, so two seasons give two labelled awards of the same achievement.
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. Progress is counted by the Quests module, and Achievements cannot be installed without it: the condition of an achievement is a Quests metric, and every achievement earned "By a condition" is backed by a Quests quest. Switching the achievement off switches its quest off too. Achievements given "By hand or as a prize" have no quest.
Links with game servers
Game metrics in Quests grow from the events the GameLink plugin sends: time on the server, kills, headshots. Until a player links their account to the site, progress builds up on the game account, and the achievement and its reward arrive after linking. A profile without a link shows "Link your account on the site to receive the achievements and their rewards."
The "Message in the game" field in the editor announces the award in the game: "To the player", or "To the whole server", in which case the whole server sees "… earns the achievement …". The message goes to the server the player is on right now, and only while "Messages in the game" is on. If the player is offline, nothing is sent. How to link a server is described on the game pages, for example Counter-Strike 2 and Rust.
Settings
AdminAchievementsSettingsThe settings are grouped into "Section", "Profile and name", "Notices and summary" and "Names of rarities".
| Field | What it changes | Default |
|---|---|---|
| "Section page" | off removes /achievements, the profile and badges still work | on |
| "Section address" | the first part of the section's address | achievements |
| "Points leaderboard" | the block on the page, the API and Studio | on |
| "Rows in the leaderboard" | 1 to 50 | 10 |
| "The share of holders is counted against" | "accounts with at least one achievement" or "every account" | accounts with at least one achievement |
| "Profile tab" | the "Achievements" tab in the profile and on the player page | on |
| "Places in the showcase" | 0 to 12, at 0 there is no showcase | 5 |
| "Badge at the name" | a player may wear one achievement at their name | on |
| "Notify on earning" | a notice with the title and the reward | on |
| "Messages in the game" | the messages from the "Message in the game" field | on |
| "Count as "dead" after, days" | days without awards before the admin home flags it | 60 |
"Section title" and "Lead" replace the page texts; empty ones keep the defaults. "Picture in the head" is on, "Own head picture" is empty. "Default icon" is drawn for achievements without a picture or an icon of their own. "Latest awards" is on, "Rows in the feed" is 8 (1 to 30).
In the "Profile and name" group, "Card on "Overview"", "Mini profile line" and "Achievements in the game menu" are on, and "Showcase achievements in the mini profile" is 3 (0 to 6). "Notify on revoking" is on. Under "Names of rarities" you can rename "Common", "Rare", "Epic" and "Legendary"; an empty field keeps the default name.
The notification texts, Achievement "{title}" and Achievement "{title}" revoked, are edited in AdminNotifications.
"Badge picture" replaces the "Icon". "Can be worn at the name" lets players wear the achievement as a badge. A "Hidden" one is seen only by those who earned it; everyone else sees a "Secret achievement". "Available from" and "Available until" limit the window, and outside it the achievement is not given. "Given" stops awarding, while players who earned it keep it.
Below the condition you can add "Condition 1", "Condition 2" rows from Rewards, for example "Has a role" or "Confirmed email". "Delete" removes an achievement only if nobody has earned it; otherwise it is switched off.
Permissions
| Permission | What it gives |
|---|---|
admin.achievements | the catalogue, categories, the editor and settings; includes admin.achievements.view |
admin.achievements.view | the catalogue screen, hidden achievements, the "Achievements" tab of a player |
admin.achievements.award | give and revoke achievements by hand; includes admin.achievements.view |
Background tasks
| Task | How often |
|---|---|
| "Achievements: reconcile counters and lost awards" | once a day, at 04:40 |
For developers
A module declares its own achievement with Services\Achievements::define(AchievementDraft) and gives it with award($user, $key, $source, $ref). The pair of achievement and ref is recorded once, and a repeat returns the same award. For such an achievement the module sets the condition, and the admin changes only the look, points and rewards. Events: flute.achievements.earned, flute.achievements.revoked. The module listens to flute.quests.completed with the owner achievements.
The reward type is achievements.badge, the reward source is achievements. Webhooks: achievements.earned ("Achievement earned") and achievements.revoked ("Achievement revoked"). REST API: the read-only resources achievements and achievement-awards (scopes achievements:read, achievement-awards:read) and GET /api/v1/achievements/leaderboard/top with period=month and limit up to 50. Studio data sources: achievements_leaders and achievements_recent.
How the core side works: Events and listeners, API keys and the REST API, Module REST API, Studio data source.
Troubleshooting
For any other message, use the error lookup.
Game achievements are not given
No server sends game counters to the site, so they never grow. Install GameLink on a server by the guide. Anyone with the admin.servers permission sees an install button right under the warning.
Give an achievement is missing
The action disappears in four cases: the catalogue has no switched-on achievement given "By hand or as a prize", the player has no site account, it is your own account, or you lack admin.achievements.award.
| Message | What to do |
|---|---|
| "Choose a metric the site counts." | pick a "Metric", or switch "How it is earned" to "By hand or as a prize" |
| "The metric is no longer counted" | the metric is gone: the module that declared it is switched off or removed. Switch it on or change the "Metric" |
| "This achievement is earned by its condition and cannot be given by hand." | give an achievement that is "By hand or as a prize" |
| "Not given: the achievement is out of its window, the previous tier is missing, or this award was revoked." | check "Available from", "Available until" and the tier below |
| "You cannot give or revoke an achievement of your own." | ask another administrator |
| "Only an achievement without a condition can be a prize: a conditional one is given once." | pick a hand-given achievement as the reward |
| "An achievement cannot give another achievement." | remove the "Achievement" type from the achievement's rewards |