Rust
The FluteRustConnect plugin for Oxide/uMod and Carbon: install, link to the site, items and blueprints, groups, bans, wipes, reports and the in-game menu.
Your Rust server is integrated with the site through the GameLink plugin, which keeps the server and the site in sync. The site delivers purchased items and blueprints, gives Oxide or Carbon groups, bans players and hears about wipes.
| Platform | Archive | Setup command | Site module |
|---|---|---|---|
| Oxide/uMod, Carbon | flute-rust-oxide-<VERSION>.zip | flute.setup <site url> <token> | RustKit |
Releases are on GitHub. The server page in the admin also offers the latest build with a "Download" button.
What you get
The plugin tells the site who is online and in which groups, plus the map, seed, world size, wipe date, FPS, entity count and join queue. The site answers with commands: give an item, a group or money, ban, message a player. Each command runs once, even after a restart.
| In the game | What the site needs |
|---|---|
| linking Steam to an account, sign-in link, balance, menu, online players | the engine alone |
| bans and chat blocks | the Sentinel module |
| player statistics | the Stats module |
/report reports | the Reports module |
| groups and privileges | the GiveCore module |
| wipes | the Wipes module |
| online players on the monitoring page | the Monitoring module |
| items and blueprints in the shop and rewards | the RustKit module and a module built on Rewards (Shop, cases, rewards) |
Requirements
Oxide/uMod or Carbon. The plugin is a single .cs file with no dependencies, and the server needs no open ports. It compiles against Oxide 2.0.7900 and Carbon 2.0.264. For money the server needs Economics or Server Rewards; everything else works without them.
Install
Download flute-rust-oxide-<VERSION>.zip, take FluteRustConnect.cs out of it and put it in the plugins folder. Oxide and Carbon compile it themselves on load.
oxide/
├── plugins/FluteRustConnect.cs
├── config/FluteRustConnect.json written on the first load
└── lang/en/FluteRustConnect.json player messages, also ru and ukAfter loading, the console shows Not connected to a site yet. Run in the server console: flute.setup <site url> <server token>.
Link to the site
Issue a token
Open AdminServers, then your server and its "Plugins" tab. Click "Issue token" and copy the command from the window. The step is covered in detail in connecting a server.
Run the command in the server console
flute.setup https://<YOUR_DOMAIN> <SERVER_TOKEN>The command works only in the server console. In game chat, even for an admin, it answers flute.setup runs only in the server console.
Check the link
The plugin answers Saved. Connecting to …, then Connected to https://<YOUR_DOMAIN> (server #N). On the "Plugins" tab the status turns to "Connected", and "What the plugin reports" shows the FluteRustConnect version, the players, TPS and the supported actions.
flute.status shows the address, the last sync, the last error and the queue at any time.
The token is kept in FluteRustConnect.json and never printed, but the console and RCON log the command you typed. If other people read that log, put the address and token into the config and reload the plugin. You can also keep them out of files: set FLUTE_SITE_URL and FLUTE_SERVER_TOKEN for the server process. They win over the config, and flute.setup is refused while they are set.
Account linking
The site knows a player by their SteamID64. NPCs and bots never reach the site.
The player gets a code on the site in "Profile → Settings → Linked accounts", with the "Get code" button. In game they type /link CODE and confirm the link on the site. Then /balance and /login work. The one-time sign-in link is given only when "Allow signing in from the game" is on in the server's link settings. The game cannot open a browser, so the link arrives in chat, in the F1 console and in a field it can be copied from.
What each feature does
Items and blueprints
Item delivery comes with the RustKit module. The plugin puts any amount of an item into the inventory, splits it into stacks, sets a skin and a custom name, or teaches the blueprint. A delivery either goes through whole or waits: with no room the player sees "No room for your delivery: free N more inventory slot(s). It will arrive by itself once there is room." With "Drop at the feet" the rest lands next to the player.
While the player is offline, asleep, dead or wounded, the delivery waits. One delivery is at most 100 stacks. Kits are not a separate action: build the product from several items, or send your kit plugin's console command.
Groups and privileges
Needs the GiveCore module. The plugin sets Oxide or Carbon permission groups. A group with an end date is removed on time, even while the site is down. The group must exist first:
oxide.group add vipOn Carbon it is c.group add vip. The plugin sends its list of groups to the site. The site cannot give groups listed in Groups the site may never grant (admin by default) or any group holding oxide.* or *.admin permissions.
Money
Money goes through Economics or Server Rewards, whichever is loaded. On the site this is the "Server credits" reward; its "Plugin currency" field picks the plugin by the config key: empty or economics goes to Economics, rp to Server Rewards. Server Rewards takes whole amounts only.
Bans and mutes
Needs the Sentinel module. A ban from the site goes into the game's own ban list, with a duration and the moderator's name in the note. A chat block is the game's mute and needs the player on the server. Rust gives plugins no voice mute, so that action is answered unsupported_action. Bans issued on the server are sent to the site, but without the admin's name.
Statistics
Needs the Stats module. Player deaths go out with the killer, the weapon and headshots. Everything else is counted in memory and sent once a minute as player.stats.
| Counter | What it counts |
|---|---|
animals, npcs, sleepers | animals, NPCs and sleeping players killed |
helis, apcs, barrels | helicopters shot down, Bradleys destroyed, barrels broken |
built, crafted, gathered | blocks and deployables placed, items crafted, resources gathered |
shots, hits | shots fired and hits on players, NPCs and animals |
suicides | the kill command and deaths by the player's own hand |
While the site is down the counters wait in memory. Switch off with Report player deaths and Report player statistics in the config.
Wipes
Needs the Wipes module. When the server starts on a new save, the plugin sends a wipe event with the map, seed and world size. If a wipe is planned for this server around that time, Wipes confirms it. Otherwise it records an unplanned wipe for you to check. The last wipe date also comes with every sync.
Reports
Needs the Reports module. /report opens a window where the player picks another player and a reason. /report name jumps straight to the reasons when part of the name matches one player. The site gets the map and the target's chat lines from the last 5 minutes.
In-game menu
/flute opens the site menu, /settings opens its settings directly. The menu is built on the site in AdminServersIn-game menu (In-game menu). In Rust it is text only: pages, buttons with prices, switches, confirmations and links, with no images or QR codes.
Commands and permissions
| Command | Who | What it does |
|---|---|---|
flute.setup <url> <token> | server console | saves the address and token and connects |
flute.status | console, server admin | link state, queue, supported actions |
/link CODE | player | links Steam to the site account |
/login | player | one-time sign-in link |
/balance | player | site balance |
/flute, /settings | player | site menu and its settings |
/report [name] | player | reports a player |
Player commands also work in the F1 console (report), and with ! only once ! is added to Commands.ChatPrefix in oxide.config.json. Command names change in the config.
Config
oxide/config/FluteRustConnect.json (carbon/configs/ on Carbon). Reload the plugin after editing it.
{
"Site URL": "https://<YOUR_DOMAIN>",
"Server token": "<SERVER_TOKEN>",
"Allow raw console commands from the site": false,
"Groups the site may never grant": ["admin"]
}| Key | Default | What it changes |
|---|---|---|
Site URL, Server token | "" | site address and server token |
Allow an http:// site URL | false | allow http://, only for a site on the same machine or network |
Allow raw console commands from the site | false | let the site run console commands. Without it only typed actions work |
Console commands the site may never run | quit, restart, rcon., ownerid, moderatorid, removeowner, removemoderator | blocked commands. A rule ending in a dot covers a whole group. The built-in list (exec, bind, alias, loading and granting through Oxide and Carbon) cannot be removed |
Groups the site may never grant | admin | groups the site will not give |
Link command, Login command, Menu command, Settings command, Balance command | link, login, flute, settings, balance | player command names |
Player reports, Report command | true, report | the report command and its name |
Report reasons (code → label by language) | cheat, aim, abuse, grief, other | report reasons: the code goes to the site, the label shows in the player's language |
Seconds between two reports on the same player | 300 | pause between reports on the same player |
Reports one player may send per window, Report window, seconds | 3, 600 | reports one player may send per window |
Chat lines of the reported player sent with a report (0-10) | 10 | how many of the target's chat lines go with a report |
Economy plugin by currency (empty key = no currency named) | "" and economics → Economics, rp → ServerRewards | which money plugin takes which currency |
Report player deaths | true | send player deaths |
Report player statistics | true | send player.stats |
Troubleshooting
For any other message, use the error lookup.
the group '…' does not exist
The site gives a group the server does not have. Create it: oxide.group add <group> on Oxide or c.group add <group> on Carbon.
Message in the console or flute.status | What to do |
|---|---|
Not connected to a site yet | run flute.setup with the address and token in the server console |
The token must start with flute_srv_ | copy the token again from the window on the "Plugins" tab |
http:// is refused | use an https:// address. For a site on the same machine turn on Allow an http:// site URL |
the site did not accept the key | the token was reset or revoked. Issue a new one and run flute.setup again |
the signature was rejected | the server clock is more than 60 seconds off the site's. Turn on NTP |
the site did not sign its answer, the answer's signature is wrong | something other than the site answered (a proxy on the way), the token differs, or the site needs updating. The plugin ran nothing |
FLUTE_SERVER_TOKEN is set but FLUTE_SITE_URL is not | set both variables, or neither |
The config file is not valid JSON | the config has an error and the plugin runs on defaults. Fix the JSON |
If a purchase did not reach the player, open AdminServersSent to servers (Sent to servers): it shows the reason, such as "The player is not on the server".
| Action | On the server |
|---|---|
raw | a console command, when allowed, with a blocklist |
player.kick | kick |
message.player, message.broadcast | chat message |
notify.player | a toast, and the full text in chat |
group.add, group.remove | Oxide or Carbon permission group |
ban.apply, ban.lift | a ban in the game's ban list, with a duration |
comms.gag, comms.unblock | chat mute with a duration |
economy.deposit, economy.withdraw | Economics or Server Rewards |
rust.item.give | an item or a blueprint |
menu.refresh | drops the cached menu |
The plugin reports to the site only the actions it can run right now, so the site does not sell what the server cannot deliver.
Site modules can read their databases directly. Connect the database on the server's "Plugins" tab: Stats reads statistics from Player Ranks and Kill Records, Sentinel reads bans from Enhanced Ban System. GiveCore can give groups without the Flute plugin too, with oxide.usergroup add or c.usergroup add over RCON.
Oxide and Carbon do not check the site's TLS certificate, so the token itself never travels over the network. A request carries an X-Flute-Key header with the key id, a fresh nonce and an HMAC-SHA256 signature, and the site signs its answer. The plugin runs nothing from an answer without a valid signature, keeps its queue and tries again later.