Skip to Content
ModulesStats and punishments

Statistics

The Stats module: a leaderboard built from game server events, ranks, player pages, seasons with prizes, and reading the databases of stats plugins.

The site counts kills, deaths, rounds and points from the events the GameLink plugin sends, and builds a leaderboard with ranks out of them. Every player gets their own statistics in the profile, and places in the day, week and season tops can bring prizes. If a server already runs a stats plugin with its own database, the site can show that plugin's table or move it into its own counting.

The Leaderboard page with filters and the My place block

The public board lives at /stats (the address can be changed in the settings), and two players are compared at /stats/compare. The profile gets a "Statistics" tab and a card with rank and place, nicknames across the site get a rank badge, and the game menu gets "My statistics". Studio has the "Best players" block, and the statistics page has two zones for your own sections: "Above the content" and "Below the content". In the admin player card there is a "Statistics" tab and the actions "Exclude from statistics", "Wipe statistics" and "Edit statistics".

DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0, Rewards; optionally SentinelCS2, CS:S, CS 1.6, GMod, Rust, FiveM, Minecraft through GameLink; TF2, L4D2 and others through plugin databasesadmin.playerstats and eight narrower ones, below"Best players" (stats.top)/stats, /topfive, below

Install and first setup

Install the module from the marketplace as described in first steps; every install option is in Installing modules. It needs the Rewards module too: prizes are delivered through it. The admin menu gets a "Statistics seasons" row in the "Servers" group, and the settings are on its tab AdminStatistics seasonsSettings.

Statistics need a source. Connect the server through GameLink: the plugin starts sending kills and rounds, and the board fills by itself. While there is neither GameLink nor a stats plugin database, the seasons screen shows "Stats have nowhere to come from". A test or fun server can be left out of the counting with the "Stop statistics" button in the server page header.

Ranks come from the picture set chosen for the server in "Rank icons". If the set has point thresholds, the rank follows them; otherwise a new rank comes every 100 points ("Points between ranks"). Your own rank names go into "Names of the ranks", one per line from the lowest.

A season with prizes

Example: a season lasts a month, the top three of the overall board get a site role, and the winner of each day gets coins.

Check the points formula

In AdminStatistics seasonsSettings, the "Points and anti-boosting" group gives 2 points for a kill, −1 for a death, 1 extra for a headshot kill and 1 for a round won by default. Kills count while at least 4 players are on the server, and no more than 40 per minute per player. If you change the formula mid-season, press "Recount points" on the seasons screen; otherwise the new formula applies to new events only.

Set the prizes

On the "Statistics seasons" screen, in the "Top prizes" block, click "Add a prize". In "Top" pick "Season", in "Place" enter 1, and in "Reward 1" pick "Site role". Repeat for places 2 and 3, then add a "Top of the day" prize for place 1 with site coins. A place that already has a prize gets the new one instead.

The New prize window with the Top and Place fields and rewards

Wait for the month to end

A season never ends on its own: it runs until you end it. The "Running now" block shows how many days the season has run, how many players are on the board, the leaders and the "Season prizes" set. Day and week prizes are given by a background task at 00:20: for yesterday and for the week that has ended, each period once.

The Statistics seasons screen with the Running now block and top prizes

End the season

Click "End the season", fill in "Season name", for example November 2026, and confirm your admin login. The final table goes to the "Past seasons" archive, and every player's points and counters are reset, while play time stays. This cannot be undone. Season prizes go to the winners' inventory right away, and the site shows "Season «November 2026» is closed, players in the results: …".

The End the season window with the name and the warning

The prize top includes players with more than zero points and at least 10 kills ("Kills needed for the board"). The prize goes to the site account the player is linked to. If the player in a place has no account, that place's prize is not given. With "Show closed seasons", visitors pick a past season in the "Season" filter above the table, and a player's page shows the "Best rank" of closed seasons.

Levels Ranks or another plugin is already installed

Example: a CS2 server has run Levels Ranks for a year, players have points built up, and you do not want them to lose those.

Connect the plugin database

Open the server in AdminServers, go to the "Plugins" tab and connect the database of Levels Ranks. From then on this server's board reads the plugin database as it is, with the note "The leaderboard of this server is read from the plugin's database." under it. The modules block on the tab gets a "Player statistics" card with the line "The board reads the Levels Ranks database".

Move the figures to the site

To drop the plugin later, click "Statistics source" in the server header. The "Move to site counting" window shows how many players the database holds and how many will move. In "Points" pick "Keep points from Levels Ranks" so players keep their points, or "Count by the site formula", or "Start from zero". Click "Move" and confirm your login.

The Move to site counting window with the points choice

Wait for the move to finish

Moving runs in parts of 500 lines, and you can close the window. At the end you see "Players moved: …", and the server board starts reading site counting. Until the season is closed, "Undo the move" takes it back.

Kills, deaths, assists, headshots, rounds, weapons and hits are moved, while the day history stays as it was. You can also change the source without moving anything: "Switch the source by hand" in the same window. Seasons and prizes work with site counting; the site never changes the figures in the plugin database.

Settings

AdminStatistics seasonsSettings, the "Statistics" section. It needs admin.playerstats.settings and, like every module settings page, the site settings permission admin.system.

Statistics settings, the Leaderboard group
FieldWhat it changesDefault
"Address of the section"the board address; the old one leads to the new onestats
"Public statistics"off: no /stats, tabs or profile rows, counting goes onon
"Who sees statistics""Everyone" or "Signed-in only""Everyone"
"Table columns"which columns the board has and their orderRank, Points, Kills, Deaths, K/D, Headshots, Time
"Periods", "Default period""All time", "30 days", "7 days", "Today"all four, "All time"
"Kills needed for the board"how many kills a player needs to be listed10
"Hide banned players"a player with a Sentinel ban in force is not shown on the boardson
"Points for a kill", "Points for a death", "Extra for a headshot kill", "Points for an assist", "Points for a round won"the points formula, −100 to 1002, −1, 1, 0, 1
"Points between ranks"the step for a rank set without thresholds of its own100
"Players needed on the server"below this online count kills and rounds do not count; 0 means always4
"Kills per minute, at most"a ceiling against boosting; 0 removes it40
"Award prizes of the tops"off: the prize grid is kept, but nothing is awardedon
"Period boards rebuild, minutes"how often the day, week and month boards are updated5
"Keep the daily history, days"31 to 2000, needed for the periods and the chart400

The "Blocks and badges" group turns parts of the page on and off: "Block «My place»", "Summary of the table", "How points are counted", "Other tops", "Players by rank", "Chart of the last 30 days", "Player comparison" and more. All of them are on except "Show the unranked badge".

admin.playerstats includes all eight narrower permissions. admin.playerstats.view opens the seasons screen and the tab in the player card; .exclude, .edit and .reset give the player actions; .season ends the season and .prizes sets the prizes. .servers turns counting on a server on and off and covers moving, the mirror and the rank configs; .settings opens the settings and "Recount points".

Bots and background tasks

Bots get two commands. /stats shows the place, rank, points, K/D and play time of your own account, or the statistics of a player when given a nickname or player number. /top lists the best ten with buttons for periods and servers. The module's background tasks are run by the scheduler.

TaskWhen
"Statistics: rebuild the day, week and month boards"every 5 minutes, by "Period boards rebuild, minutes"
"Statistics: moving from a plugin database"every minute
"Statistics: Levels Ranks mirror"every minute
"Statistics: prizes of the day and the week"once a day at 00:20
"Statistics: remove old rows"once a day at 04:20

Games and plugin databases

GameLink sends events from CS2, Source, CS 1.6, GMod, Rust, FiveM and Minecraft servers. Each game's page says what exactly it sends. SA-MP events count when the server's player check is "Offline with a password login": a nickname confirmed by a password counts as the player's account. In "Offline" mode anyone can take a nickname, so the table stays empty for such a server. The databases of these plugins are connected on the server's "Plugins" tab:

GamePlugins
CS2Levels Ranks, K4-System, K4-Zenith, Fire Players Stats, RankMe, HLstatsX:CE
CS:SLevels Ranks, RankMe, HLstatsX:CE
CS 1.6Levels Ranks, HLstatsX:CE, CSstatsX SQL, CsStats MySQL / Army Ranks Ultimate
TF2, L4D2HLstatsX:CE, TF2 Stats, Custom Player Stats
RustPlayer Ranks, Kill Records

The "Levels Ranks mirror" is connected in the same place, like a plugin. The site writes its own board of the server into a Levels Ranks format table for web panels and bots that read lvl_base. In "SteamID format" pick the format of your plugin version. Do not point it at the table the real Levels Ranks writes to.

On a server with a rank set, the "Rank configs" button in the header builds an archive for the Levels Ranks plugin on SourceMod, CounterStrikeSharp or Metamod: thresholds, names and the Fake Rank config. "Download the archive" gives the files, and "Where the files go" tells you where to put them.

For developers

A game module can hand over its own server board through the Flute\Modules\Stats\Contracts\StatsSource contract, and with StatsSourceProfile also a player's line for their profile. A source is registered in boot() with StatsSources::register(); this is how the Minecraft module plugs in the Plan database. Events: stats.season_closed (SeasonClosed: seasonId, title, players, actorId) and stats.player_reset (PlayerStatsReset: playerId, serverId where 0 means every server, actorId). Other modules can use the account rating "Stats points (all servers)". php flute stats:import --seconds=600 moves a started import on without waiting for the scheduler.

How the core side works: Events and listeners, Another module in the provider, Extension points, Commands and scheduled tasks.

Troubleshooting

For any other message, use the error lookup.

Nobody is on the board yet

A player is listed after 10 kills, and kills count only while at least 4 players are on the server. On a test server with two players the board stays empty. Lower "Players needed on the server" or "Kills needed for the board".

MessageWhat to do
"Stats have nowhere to come from"install GameLink on the server or connect a stats plugin database
"Nobody has played this season yet, there is nothing to close."wait for the first events from a server
"The plugin's statistics are not available right now. The site will try again in half a minute."the plugin database is not answering; check it on the "Plugins" tab
"…: the database holds several servers, and none has this server's address."the server address on the site must match the one in the plugin database
"A season was closed after the last move, so that move can no longer be undone."once a season is closed, that move stays
"Not writing: Levels Ranks itself writes to this table and is connected on the site. Pick another table."give the mirror another table

Next

On this page