Referral program
The Referral module: a personal code and link for every player, a share of invited players' top-ups, rewards for both sides and multi-account checks.
Every player gets a personal link and code. A friend signs up through the link and meets a condition, such as 2 hours of play, and from then on the inviter earns a percentage of each of the friend's top-ups. On top of that you can hand out friend rewards to both sides, and the module sends suspicious links to a moderator.

| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron tasks |
|---|---|---|---|---|---|
| Flute 2.0, the Rewards module; Quests optional | any | admin.referral, admin.referral.view, admin.referral.review, admin.referral.link, admin.referral.members | "Referrals: invite a friend" | /ref | "Referrals: confirm links and pay shares", daily |
What the site gets
The section lives at /invite and in the "Invite a friend" menu item. The item shows while the program is on. A guest sees who invites them and which gifts are waiting; a signed-in player sees their link, the terms, the reward ladder, their friend list and "Top inviters".
An invite link looks like https://<YOUR_DOMAIN>/r/<code>. The ?ref=<code> parameter works on any page of the site: the guest sees a banner with the inviter's name and the invitation is remembered for 30 days. A friend who came without a link enters the code in the "Who invited you" block within 7 days of signing up.
| Place | What is there |
|---|---|
| Player profile | the "Invites" tab and a card on the overview, visible only to the player |
| Player card in the admin | the "Referrals" tab: who invited the account, whom it invited, shares and the refund debt |
Moderation (/staff) | the "Referral links" queue with links under review |
| Studio | the "Referrals: invite a friend" block in the "Scene with a button", "Reward ladder" and "One line" variants |
| Telegram and Discord bot | /ref sends the link, the friend count and the earnings in a private message |
Install and first setup
Install the module from the marketplace together with Rewards, as described in first steps; every install option is in Installing modules. The program starts at once: "Invite a friend" appears in the menu and players get their links. The admin menu gains "Invites" in the "Activities" group: AdminInvites.

Module settings open from the "Settings" tab of the module screens: AdminInvitesSettings, at /admin/modules/Referral/settings.
By default a friend counts once they verify their e-mail and play 2 hours on your servers. Play time reaches the site through GameLink, so connect at least one server as described in connecting servers. If no server runs GameLink while play time is required, the module screens show "Friends won't get confirmed".
Set up the program and rewards
Set the share of top-ups
In the "Share of top-ups" group, set "Share, %", 5 by default and 50 at most. To make the share grow with the number of friends, fill in "Share steps": 5:7, 20:10 means 7% from five confirmed friends and 10% from twenty. The share goes to the inviter's balance.
Choose when a friend counts
In the "Confirming an invited player" group, keep the conditions you need: "Verified e-mail", "Account age, days", "Linked game account", "Playtime, hours" and "First top-up". Until the conditions are met, the friend stays "Waiting" and earns no share.
Add friend rewards
On the "Invites" screen, click "Rewards", then "Add a reward". In "For whom and when", pick one of four options: for the invited player "right after the link" or "once confirmed", for the inviter "for every confirmed player" or "for a number of confirmed players". For the last one, set "Confirmed players", for example 10.

Pick the reward itself
The reward uses the same editor as the shop and cases: "Balance top-up", "Site role", "Server command" and the other types from Rewards. Money for the invited player arrives only after confirmation, even with "right after the link". Every grant goes to the "Grants" log.
With no rewards the program pays the share of top-ups only. Deleting a reward does not take it back from players who already got it.
Refunds and debt
When an invited player's payment is refunded or disputed, the inviter's share is taken back. If the inviter already spent the money, the rest becomes a debt and comes off the next shares. The player sees the debt as "held back", and staff with admin.referral.members can click "Clear the debt" on the "Referrals" tab of the player card.
To let refunds happen before payout, set "Hold, days": the share arrives that many days after the top-up, and a top-up refunded meanwhile earns nothing.
Link review
The module catches the usual tricks. A link goes to review when the friend has the inviter's IP or device, when more than 3 accounts link to one code from one address within a day, or when the friend played more than 60 minutes before the invitation. Accounts that share a game account and mutual invitations are never linked.
Links under review are collected in the "Waiting for a decision" block on the "Invites" screen and in the "Referral links" moderation queue. "Approve" lets a link go on; "Reject" takes back everything its inviter earned. Your own link is approved by another staff member.
The row menu also has "Unlink", and the player card has "Link to an inviter", "Close membership" and "Open membership". A player with closed membership invites nobody and earns nothing.
Settings
| Field | What it changes | Default |
|---|---|---|
| "Programme is on" | the page, links and shares | on |
| "Share, %" | percentage of every top-up of a confirmed friend, 0 to 50 | 5 |
| "Share steps" | "friends: percent" pairs such as 5:7, 20:10 | empty |
| "Smallest top-up" | a smaller top-up earns no share | 0 |
| "Share term, days" | how many days after the link top-ups earn a share, 0 means for good | 0 |
| "Ceiling per invited player" | one friend earns no more than this, 0 removes the ceiling | 0 |
| "Hold, days" | how many days after the top-up the share arrives | 0 |
| "Verified e-mail" | the friend must verify their e-mail | on |
| "Account age, days" | the friend's account must be at least this old | 0 |
| "Linked game account" | the friend must link a game account | off |
| "Playtime, hours" | how long the friend must play on your servers | 2 |
| "First top-up" | how much the friend tops up after the link | 0 |
| "Played before, minutes" | a friend who played longer before the link goes to review | 60 |
| "Check a shared IP" and "Check a shared device" | a link from the inviter's IP or device goes to review | on |
| "Links from one IP per day" | the next link to the same code from the same address goes to review | 3 |
| "Keep the IP hash, days" | when the hash of the link address is erased | 90 |
| "Invited players per member" | 0 removes the limit | 0 |
| "Code window, days" | how many days after sign-up a code can be entered, 0 means any time | 7 |
| "Remember the link, days" | how many days an invitation waits for sign-up | 30 |
| "The last link wins" | a guest with two invitations links to the last one, not the first | off |
| "Shortest code" and "Longest code" | length of a player's custom code, 3 to 32 | 3 and 32 |
| "Code change every, days" | 0 means any time, −1 means the code is set once | 30 |
| "Top inviters", "Guests see the top" | the top block on the page | on |
| "Size of the top", "Period of the top" | places in the top and the time span counted | 10, "All time" |
| "Card in the profile" | the link and numbers on the player's profile overview | on |
| "Page title", "Page lead" | your own text instead of the default | empty |

The "Notices" group has seven switches, all on: to the inviter about a new friend, a confirmation, each share and a share taken back; to the invited player about the welcome, review and rejection. Notification texts are edited in notification templates.
Permissions
| Permission | What it grants |
|---|---|
admin.referral | everything, including settings and rewards |
admin.referral.view | the "Invites" screen, the player card tab and the review queue |
admin.referral.review | "Approve" and "Reject" |
admin.referral.link | "Link to an inviter" and "Unlink" |
admin.referral.members | "Close membership", "Open membership" and "Clear the debt" |
Game servers
The "Playtime, hours" condition is counted from what the GameLink plugin reports, and the same plugin delivers server rewards for friends through Rewards. The game pages explain how to install it, for example Counter-Strike 2, Rust and Minecraft.
For developers
The module registers the referral reward source in Rewards and two webhook events: "A referral was linked" and "A referral share was paid". With the Quests module, quest conditions gain the "Invited friends (confirmed)" metric. Linking, shares and take-backs hang on the engine's sign-in, e-mail verification, payment, refund and dispute events. A module failure never breaks a sign-up or a payment: whatever did not go through, the daily task redoes.
How the core side works: Events and listeners.
Troubleshooting
For any other message, use the error lookup.
Friends won't get confirmed
"Playtime, hours" is on, but no server runs GameLink, so play time never reaches the site. Install the plugin on a server or set "Playtime, hours" to 0.
Condition met, confirmation within a day
Play time and account age are checked by the daily task. If a friend stays in this state for longer than a day, check that the scheduler runs every minute.
| Message | What to do |
|---|---|
| "The referral programme is off" | turn on "Programme is on" or click "Turn on programme" on the "Invites" screen |
| "A code can be entered only within :days days of signing up." | the window has passed: link the player by hand from their card or raise "Code window, days" |
| "The account is already linked to another code." | unlink the old link in "Invites" if it is wrong |
| "The owner of this code has invited the most players allowed." | raise "Invited players per member" |
| "The two accounts share a game account." | it is one player with two accounts, linking is not allowed |
| "Your own link is approved by another staff member." | ask a colleague with admin.referral.review |