Skip to Content
ModulesStore and money

Rewards

The Rewards module: one journal of everything the site grants, delivery to the account and to game servers, the player's inventory, site coins and prize pools.

Rewards delivers everything a player gets from the site: a store purchase, a case prize, a referral bonus. Every grant lands in one journal that shows whether it reached the player, and the site retries whatever did not. The module has no storefront of its own: Shop, Cases, Referral and the other modules with rewards are built on it.

The Grants journal with the What needs attention block
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0all; server rewards go through GameLinkadmin.rewards, admin.rewards.retry, admin.rewards.revoke, admin.rewards.pools, admin.rewards.currencynonenonetwo, below

Where the module shows up

PlaceWhat is there
AdminRewardsGrantsthe journal of every grant, with retry and revoke
AdminRewardsPrize poolsprizes and chances of cases, wheels and bonuses
AdminRewardsSettingsmodule settings, at /admin/modules/Rewards/settings
Player card in the adminthe "Grants" and "Coins" tabs, the "Change coins" action
Profile on the sitethe "Inventory" and "Coins" tabs, visible to the player only
Site header and account menuthe coin count next to the balance
Profile settingsthe "Show me in public lists and feeds" switch
/fairthe "Fair play" page for checking draws

Install and first setup

Rewards is installed together with the module that needs it: Shop, Cases or Referral. You do not have to configure it right away, the defaults work. How modules are installed is covered in Installing modules.

Check two things. Every game server that will receive rewards needs the GameLink plugin, otherwise nothing reaches the game; see connecting a server. And the scheduler has to run once a minute: without it the site does not retry grants or remove rights when their term ends, see Scheduler.

Reward types

A reward is built in an editor that looks the same on a store product, a case prize and in other modules. In the "Reward 1" row you pick a type, and its fields appear below. Every type also has "Own name", "Picture" and "Price when sold from the inventory".

TypeWhat the player getsFields
"Balance top-up"money on the site balance"Amount", "Random, up to"
"Site coins"coins, see below"Quantity", "Random, up to"
"Site role"a role, for a term or with no end date"Role", "Term"
"Profile cosmetics"an avatar frame, profile frame, profile effect or nickname style from cosmetics"Profile item"
"Server group by name"a group in the server's permission plugin, such as VIP"Group on the server", "Term"
"Server command"one line sent to the server console"Command", "Command on revoke"
"Server credits"currency of the server's economy plugin"Quantity", "Plugin currency"
"Keepsake"nothing but an inventory entry: an empty slot of a draw or a collectiblenone

Write "Group on the server" exactly as the plugin on the server names it: vip, premium, up to 64 characters with no spaces. "Command" accepts the player's {steamid} and {name}. It must be a single line of at most 512 characters, and "Command on revoke" goes to the server when the reward is taken back.

Game modules add their own types: "Rust item" in RustKit, "Pointshop item" and "Pointshop 2 item" in GmodKit, "FiveM item", "FiveM vehicle" and "FiveM job" in FiveMKit, "Minecraft item" in the Minecraft module. A type disappears from the list while its module is off.

The Grants journal

AdminRewardsGrants lists everything the site has given players, from any module. At the top, "What needs attention" shows "Did not reach the players", "Waiting for the player" with the reason (no game account, picking a server, not claimed) and "On their way". When all is well it says "Everything reaches the players: no failed grants, nobody is waiting."

The "All", "Waiting for the player", "On their way", "Delivered", "Need attention" and "Revoked" tabs split grants by status. The "Nickname or SteamID" search and the "Source" and "Server" filters narrow the list. A row opens the grant card: the reward, server, game account, attempts, "What went wrong" and "Commands sent to the server for this grant".

StatusMeaning
"Being delivered"the site is giving the reward right now
"In the inventory"the reward waits for the player to claim it
"Sent to the server"the command is in the GameLink queue, the server has not confirmed yet
"Delivered"the player has the reward
"Not delivered"the attempt failed; the site will retry or waits for you
"Revoked", "Expired"the reward was taken back or its term ended
"Sold", "Traded in"the player sold it from the inventory or traded it in another module

A player's page in the admin, AdminPlayers, has a "Grants" tab with the latest 50 grants of that account.

Retry a grant that did not arrive

Open "Need attention"

These are grants the site no longer retries on its own. The row gives the reason, such as "The server is not connected to the site." or "The recipient has no game account linked."

Fix the cause

Install the GameLink plugin, switch the disabled module back on, or ask the player to link an account. If the server plugin does not know the action, a retry hits the same error.

Press "Retry"

For several rows, tick them and press "Retry selected". The result comes back as a message like "Retried: 3. Skipped: 1."

"Revoke" takes a reward back. Before you confirm, the window tells you what will happen: the grant is cancelled if the player has not received it yet, a right is removed on the site and on the server, or what is left is taken from the balance. The text in "Reason" reaches the player in a notification. Money the player has already spent is not returned, and the shortfall stays on the card under "Could not be taken back".

Delivery to a server

Balance, coins, roles, cosmetics and keepsakes are given on the site at once. Server groups, commands, credits and game items go to the game server as a command through GameLink. For that the site has to know the server and the player's game account. When the player picks the server, or no account is linked, the reward goes to the inventory and waits.

The reward editor sets the server in "Where to give": "Player picks", "All servers" or "Selected". With "Player picks" and an empty "Servers" list, any server of that game will do. Until the server confirms the command, the grant stays "Sent to the server". What the plugin does when the player is offline is covered on the game page, for example Counter-Strike 2.

When the server does not take the reward, the site retries by itself. The pause between attempts starts at 2 minutes and doubles, up to an hour. After "How many times to retry a delivery" (5 by default) the grant moves to "Need attention". A grant cut off halfway is picked up again after a minute.

Granting the same right again extends its term: the player sees "its term will grow from … to …". When the term ends, the site removes the right on the server too. "After a server wipe" decides what happens to a grant when the Wipes module reports a wipe: "As the type does", "Nothing", "Give again" or "End it". A server group is given again by default, with the same term.

Grants are counted per reward, and one reward can send the server several commands. The commands themselves, their queue status and the plugin's answers are on the Sent to servers screen.

The player's inventory

The inventory is a profile tab only the player sees. The number on the tab shows how many rewards wait to be claimed. A reward lands here when a server has to be picked or a game account linked, and case or bonus prizes also land here when they have a "Price when sold from the inventory".

The Inventory tab on a player's profile

The player presses "Claim", picks a server if several fit, and the reward goes out. A reward with a selling price also shows "Sell for …": the reward disappears and the money goes to the balance. The "In force" block lists the privileges and roles the player has right now and where they apply, and "History" lists what was claimed, sold or revoked.

How long a reward waits is set by the module that gave it, or by "Days a reward waits in the inventory". "Days before a reward is lost to warn the player" sends the "A reward is about to be lost" notification, and once the term is over the reward cannot be claimed. A blocked account keeps its rewards but cannot claim or sell them.

Site coins

Coins are the site's own currency in whole units. Quests, the daily bonus, achievements and draws hand them out, and players spend them on cases, stakes, the clicker and tickets. Coins never turn into money. Their name, icon and picture are set in the "Site coins" group of the settings.

Players see their coins in the header and the account menu, and the history on the "Coins" profile tab. Once "Coin price when bought for the balance" is set, the same tab gets "Buy coins" with the packs from "Packs of coins on sale".

A player's page in the admin has a "Coins" tab with the history and the "Change coins" action: "Add" or "Take", "How many coins", and a "Reason" the player sees in the history. It needs admin.rewards.currency, and you cannot change your own coins.

Prize pools

A prize pool is what a case, wheel or bonus draws its prizes from. Those modules create the pools themselves, and AdminRewardsPrize pools shows where each one is "Used in", how many "Draws" it had and how much was "Paid back" to players.

The Prize pools list with the Paid back column

"Prizes" opens the pool. A prize is the same reward as in the editor above, plus "Weight", "Stock", "Per player, times", "Rarity" and "Takes part in the draw". A prize's chance is its weight divided by the sum of weights of the prizes in play: with weights 90 and 10, the second one drops in 10% of draws. An empty "Stock" means no limit, and a new number starts the stock anew.

"Make a copy" creates a switched-off copy of the pool, "Switch off" stops draws from it. Every draw can be checked on the /fair page: the site publishes the hash of its secret seed in advance, the player sets their own, and after "Change the seed" any past draw can be recomputed.

Settings

AdminRewardsSettings
Rewards module settings, the Delivery group
FieldWhat it changesDefault
"How many times to retry a delivery"1 to 20, then the grant moves to "Need attention"5
"Name of the inventory tab"if empty, "Inventory"empty
"Rewards may be sold from the inventory"off removes the sell button from every rewardon
"Show the history in the inventory"the list of claimed, sold and revoked rewardson
"Days a reward waits in the inventory"0 keeps it with no limit0
"Days before a reward is lost to warn the player"a notification and an orange date in the inventory3
"Days before a right ends to warn the player"for example, that VIP lasts three more days3
"Preset terms, days"buttons over the "Term" field, up to eight7, 30, 90
"Site coins are on"coins in the header, profile and rewardson
"Coin price when bought for the balance"0 means coins are not sold0
"Packs of coins on sale"how many coins each pack holds100, 500, 1000, 5000
"What one coin is worth in the balance"used to value prizes and case returns0
"Draws may be paid from the site balance"off refuses draws charged to the balanceon
"Players may stake the site balance against each other"case battles for the site balanceoff
"The pages that check draws are open to everyone"off hides /fair from guestson
"How chances are shown to players"as a percentage, as "1 in N", or hiddenas a percentage
"Reveal the server seed every N draws"0 reveals it only on a seed change0

The settings also hold reward covers by kind ("Cover of a privilege", "Cover of a role", "Cover of balance", "Cover of an item") and five "Notify: …" switches, all on. The notification texts are edited in AdminNotifications, group "Rewards".

Permissions

PermissionWhat it grants
admin.rewardsthe Grants journal, the "Grants" tab on a player and the module settings
admin.rewards.retryretry a failed grant
admin.rewards.revokerevoke a grant
admin.rewards.poolsthe "Prize pools" screen, contents and chances
admin.rewards.currencyadd and take coins of players

Retrying or revoking a money reward also needs admin.payments, and a server reward needs admin.servers. A role can be given or taken only if it stands below your own.

Background tasks

Shown in AdminScheduler.

TaskHow often
"Rewards: retry grants"every minute
"Rewards: end of terms"every 10 minutes

For developers

A module grants a reward with one call, RewardDispatcher::grant($user, $reward, $source, $sourceRef). The source and sourceRef pair is recorded once, so a repeat of the same request never creates a second grant. A module names its source with RewardSources::register() and embeds the reward editor through RewardForm.

A custom reward type implements Contracts\RewardType with a key like <module>.<name> and registers in RewardTypeRegistry. A custom eligibility condition implements Contracts\EligibilityRule and registers with Eligibility::register(). Events: flute.rewards.granted, flute.rewards.delivered, flute.rewards.revoked, flute.rewards.expiring, flute.rewards.expired, flute.rewards.replayed, flute.rewards.pool_spun, flute.rewards.pool_changed.

How the core side works: Events and listeners, Extension points.

Troubleshooting

For any other message, use the error lookup.

Grants are waiting for servers without GameLink

The journal shows a "No GameLink on:" line with the list of servers. Install GameLink by the guide, then press "Retry" in "Need attention".

The rules of this server's platform do not allow this reward there.

The server accepts rewards only from allowed sources; FiveM and RedM servers work this way with the Tebex module. Add the source in that module's settings or give the reward on another server.

MessageWhat to do
"The module that gives this reward is switched off. The grant will be retried once it is back."switch the module on in "Extensions"
"The server's plugin cannot give this kind of reward."update GameLink or install the game module that has this type
"The site was already giving this player another reward and was not free in time."wait, the site retries by itself
"The delivery was cut short: the site did not get the server's answer."check it on the "Sent to servers" screen, then "Retry"
"The reward is set up incorrectly: what it gives was removed from the site."fix the reward in the source module, for example restore the role
"Money changes hands here: the billing right (admin.payments) is needed."ask a staff member with admin.payments
"Not on your own account: another administrator does it."another administrator retries or revokes your own grant

Next

On this page