Counter-Strike 2
The GameLink plugin for CS2: install it on CounterStrikeSharp, SwiftlyS2 or Metamod, connect it to the site, deliver purchases, bans, stats and the in-game menu.
Your CS2 server is integrated with the site through the FluteCS2Connect plugin, which keeps the server and the site in sync. Perks bought on the site reach the player and bans issued on the site take effect on the server. Players get the site menu in game, and the site receives who is online, stats and reports.
| Platform | Archive | Setup command |
|---|---|---|
| CounterStrikeSharp | flute-cs2-css-<VERSION>.zip | css_flute_setup |
| SwiftlyS2 | flute-cs2-swiftly-<VERSION>.zip | sw_flute_setup |
| Metamod:Source, Linux | flute-cs2-metamod-linux-<VERSION>.zip | mm_flute_setup |
| Metamod:Source, Windows | flute-cs2-metamod-windows-<VERSION>.zip | mm_flute_setup |
The archives are in the flute-cs2 releases. The version in the file name has no leading v: flute-cs2-css-1.0.0.zip. Install one build, for the platform your server already runs.
What you get
Account linking, signing in from the game, the balance, the site menu and the list of players online work on the engine alone, with no modules. Everything else needs a site module:
| What the plugin does | Site module |
|---|---|
| Grants groups, VIP, admin rights and in-game currency after a purchase | GiveCore, Rewards, Shop |
| Applies bans, mutes and gags from the site and reports the ones issued in game | Sentinel |
| Sends kills, rounds, matches and player numbers | Stats |
Takes !report complaints with the score and the last chat lines | Reports |
| Keeps out players who are not on the site whitelist | Whitelist |
| Shows servers and players on public pages | Monitoring |
Reloads a player's skins with a console command, when allow_raw_commands is on | Skinchanger |
Demos are recorded by a separate plugin from the same release and need the Demos module on the site.
Requirements
| Platform | Version |
|---|---|
| CounterStrikeSharp | 1.0.369 or newer (.NET 10) |
| SwiftlyS2 | 1.4.9 or newer |
| Metamod:Source | 2.0 with KHook, build 2.0.0-git1460 or newer. Plus cs2-menus (utils) by Pisex, built for the same Metamod |
On Metamod the plugin will not start without utils: it takes chat, commands, events and menus from there.
The plugin needs neither RCON nor open ports: it calls the site over HTTPS on its own.
Install the plugin
Unpack the archive into game/csgo/, keeping its folders, and restart the server. The archive ships no settings; config.json appears on the first start.
game/csgo/addons/counterstrikesharp/
├── plugins/FluteCS2Connect/
├── shared/FluteConnect.Api/
└── configs/plugins/FluteCS2Connect/config.json ← after the first startConnect to the site
The server must already be added in the admin panel, as described in Connect a game server.
Issue a token
Open AdminServers, then your server and its "Plugins" tab. Expand "How to install GameLink" and click "Issue token". A window opens with the command ready, the flute_srv_… token already in it.
Run the command in the server console
css_flute_setup "https://<YOUR_DOMAIN>" <SERVER_TOKEN>On SwiftlyS2 the command is sw_flute_setup, on Metamod mm_flute_setup. It runs only in the server console or over RCON. From the game you get [Flute] css_flute_setup runs only in the server console.
Check the connection
A few seconds later the console prints:
Connected to https://<YOUR_DOMAIN> (server #3)The status on the "Plugins" tab turns to "Connected". Under "For power users: security, command queue, in-game menu" → "What the plugin reports" you see the plugin version, the player count and the actions it can perform.
css_flute_status (sw_flute_status, mm_flute_status) shows the link state at any time. The Extensions line lists the plugin modules that declared actions: Sanctions and Privileges. Stats and Reports only send events, so they are not listed there.
Linking accounts
Players are identified by SteamID. For site purchases to find a player on the server, they link the accounts: on the site they open Profile → Settings → Linked accounts → "Get code", type !link CODE in game chat and confirm the link on the site.
!balance shows the site balance. !login gives a one-time sign-in link for the site, but only when "Allow signing in from the game" is on under "Security" on the "Plugins" tab. The switch is off by default, and administrators and moderators never get such a link.
Stats
The stats module sends the site kills (who, with whose help, with what, headshot or not), round ends, match start and end, and player numbers: shots, hits, damage, MVPs, bombs. It stays silent during warmup and ignores bots. The site stores this in the Stats module. The player and match score in every sync is sent even without that module.
Bans and mutes
The sanctions module carries out bans, gags and mutes from the site and reports punishments issued in game to the site, along with who issued them. When the server has an admin plugin, the punishment goes through it:
| Admin plugin | Platform |
|---|---|
| CS2-SimpleAdmin, IKS Admin | CounterStrikeSharp |
| Admins (SwiftlyS2-Plugins) | SwiftlyS2 |
| AdminSystem by Pisex | Metamod |
Without one, the plugin keeps its own list in sanctions.json: a banned player is kicked on every join, a gag silences chat, a mute silences voice. The site needs the Sentinel module.
Store and delivery
The privileges module grants and removes groups, reloads VIP and admins, and adds or takes in-game currency. The group prefix decides where it goes: vip:gold goes to the VIP plugin, admin:moder to the admin plugin, a group without a prefix is granted by the platform itself. Supported: VIP-Core, Shop-Core and Levels Ranks on CounterStrikeSharp, VIP, Admins and Shop from SwiftlyS2-Plugins, and the Pisex plugins on Metamod.
A purchase for a player who is offline waits until they join. When the server has no VIP plugin or store for that group, the site gets unsupported_action back and knows the purchase was not delivered. How each command went is shown under "Command queue" on the "Plugins" tab, and everything the site sends to servers is listed in Sent to servers.
The site cannot grant a group with @css/root, @css/rcon or * until allow_privileged_groups is switched on in the privileges section.
In-game menu
!menu opens the site menu in the centre of the screen, !settings the settings page. W and S move the cursor, E selects, A goes back, R closes. On Metamod cs2-menus already owns !menu and !settings, so use !flute, /menu and /settings there.
Site modules add the menu sections: store, servers, skins. Order and contents are set in AdminServersIn-game menu (In-game menu).
Monitoring
Every sync carries the map, the players with their score, ping and team, and the current match with the CT and T score. The site shows it on the server page in the admin panel, and the Monitoring module puts it on public pages.
Demos
GOTV demo recording is a separate archive of the same release: flute-cs2-demos-css-<VERSION>.zip, flute-cs2-demos-swiftly-<VERSION>.zip, flute-cs2-demos-metamod-linux-<VERSION>.zip or flute-cs2-demos-metamod-windows-<VERSION>.zip. Its config takes two values:
{
"site": "https://<YOUR_DOMAIN>/api/v1/demos/upload",
"token": "<SERVER_TOKEN>"
}The token is the same as for GameLink. On SwiftlyS2 the file is addons/swiftlys2/configs/plugins/Demos/config.json, on Metamod it is addons/configs/demos.ini. Recording starts with the next round, and at the end of the match or on a map change the demo goes to the site. What the site does with it is on the Demos page.
Plugin commands and permissions
| Command | Who can run it | What it does |
|---|---|---|
css_flute_setup <url> <token> | server console, RCON | connects the server to the site and saves url and token to config.json |
css_flute_status | console, a player with admin_permission | link state, last error, queue |
css_flute_reload | console, a player with admin_permission | rereads config.json |
!link CODE | player | links the account to the site |
!balance | player | site balance |
!login | player | one-time sign-in link for the site |
!menu, !settings | player | site menu and settings page |
!report | player | a report: pick the player, then the reason |
On SwiftlyS2 console commands start with sw_, on Metamod with mm_. admin_permission defaults to @css/root, on Metamod to @admin/root from AdminSystem. A player can report the same player once per 5 minutes and send at most three reports per 10 minutes.
Plugin config
| Platform | File |
|---|---|
| CounterStrikeSharp | addons/counterstrikesharp/configs/plugins/FluteCS2Connect/config.json |
| SwiftlyS2 | addons/swiftlys2/configs/plugins/FluteCS2Connect/config.json |
| Metamod | addons/configs/FluteCS2Connect/config.json |
The setup command writes url and token; set them by hand only when you have no console access. After editing, run css_flute_reload. The file holds the token, so the plugin sets its permissions to 600.
{
"url": "https://<YOUR_DOMAIN>",
"token": "<SERVER_TOKEN>",
"language": "en",
"allow_raw_commands": false,
"events": ["player.join", "player.quit", "map.start"],
"stats": { "enabled": true },
"sanctions": { "enabled": true },
"reports": { "enabled": true, "command": "report" },
"privileges": { "enabled": true }
}| Parameter | Default | What it changes |
|---|---|---|
language | en | language of chat messages and the site menu: en, ru or uk |
chat_prefix | {green}[Flute]{default} | prefix of the plugin's chat messages |
allow_raw_commands | false | lets the site run console commands. Skinchanger and "Send a command" in the admin panel need it |
command_blacklist | rcon_password, quit, exec, alias, sv_cheats and more | commands the site will never run |
allow_insecure_http | false | allows an http:// site address, only when the site runs on the same machine |
events | player.join, player.quit, map.start | events sent to the site. chat.message forwards chat |
menu_renderer | auto | CounterStrikeSharp only: chat shows the menu as a list in chat |
commands | link, balance, login, menu, settings | names of player commands |
admin_permission | @css/root | player permission for flute_status and flute_reload |
sync_interval_seconds | 10 | pause between syncs until the site sets its own (3 to 120 seconds) |
debug | false | logs every command it runs |
A module is switched off with "enabled": false in its section. css_flute_reload is not enough for that: restart the server or reload the plugin. To the site a switched-off module looks like one that is not installed, and the site does not offer its actions.
Troubleshooting
For any other message, use the error lookup.
css_flute_status shows the last error on the Last error line.
| Message | What to do |
|---|---|
Site: not configured — flute_setup <url> <token> | the plugin is not connected yet: run the setup command |
The token must start with flute_srv_ | the wrong token went into the command. Copy the whole command from the "Issue token" window |
the site does not know this server's key — reset the token in the admin panel and run flute_setup again | the token was revoked or replaced. Click "Issue a new one" and run the command again |
signature rejected — check the server clock (±60 s) | the game server clock is more than a minute off the site clock. Turn on time sync |
bad_response: the site did not answer with JSON — does the URL point at Flute? | the address does not lead to the site, or a proxy page is in the way. Use the site root without /api |
network_error, timeout | the server cannot reach the site. The plugin retries with a pause of up to max_backoff_seconds |
too_many_requests | several servers share one token. Issue one per server |
http:// is refused | the site address starts with http://. Use https:// |
Token issued, but the plugin has not called in yet
The site has not had a single request from the plugin. Check that the server was restarted after unpacking, the setup command was run in the console, and css_flute_status shows none of the errors above.
Purchase not delivered: unsupported_action
The server has no plugin that owns the group or currency. If the VIP plugin is installed but was not detected, force it on: "integrations": {"vipcore": "on"} in the privileges section.
Reference
| Section | Key | Default | What it changes |
|---|---|---|---|
reports | command | report | the report command in chat |
reports | reasons | cheat, abuse, grief, other | report reasons with en and ru labels |
reports | same_target_seconds | 300 | one report on the same player within this time |
reports | max_reports, window_seconds | 3, 600 | how many reports a player may send per window |
reports | chat_lines | 20 | how many recent messages of the target to attach, 0 to 20 |
sanctions | integrations | {} | auto, on or off for each admin plugin |
privileges | integrations | {} | auto, on or off for each VIP plugin, admin plugin and store |
privileges | group_routing | vip:, admin:, no prefix | where a group goes by its prefix |
privileges | allow_privileged_groups | false | lets the site grant groups with @css/root, @css/rcon or * |
privileges | groups | [] | server groups the site offers in its picker, such as vip:gold |
privileges | currencies | credits, exp | where currency goes: the store or Levels Ranks experience |
stats has only enabled. sanctions and privileges also have custom_integrations, which overrides the commands of a built-in integration or adds your own admin plugin.
The token never travels over the network. The plugin derives a key from it and signs every request with the X-Flute-Key (key id), X-Flute-Timestamp, X-Flute-Nonce and X-Flute-Signature headers. The site stores only a hash of the token.
The site's answers are signed too. The plugin runs nothing from an answer without a valid signature and reports unsigned_answer. While the site is down, events wait in memory (up to 5000) and go out with the same ids once it answers, so the site never counts them twice. A server restart clears that queue.
Commands the site sends to the server can use {userid}, {slot} and {name}. Only the server knows these values, so the plugin fills them in when it runs the command and strips quotes and ;. A command for a player who is not on the server gets deferred back and waits on the site.