- Works With
This plugin keeps player currency synced across all your Rust servers using MySQL. It supports both Economics and Server Rewards, updating balances automatically so players always have the same amount of money and points no matter where they play. Admins can also use built-in commands to force updates without needing to touch either plugin manually. Perfect for networked or multi-server Rust setups.
Recommended Plugins
- Ban Sync - Keeps bans in sync across multiple servers via mysql.
Requirements
- Requires Economics and/or Server Rewards to be installed and loaded on all servers.
- All servers must point to the same MySQL database with correct permissions for the configured table.
Commands
cs.check <steamId64>
- Shows the last synced balance for the target player.cs.set <steamId64> <economyAmount> <rewardsAmount>
- Sets both the Economics and Server Rewards balances for the target player and syncs them immediately.
Configuration
JSON:
{
"Version": "1.0.0",
"MySql": {
"Host (ip/hostname)": "CHANGE_ME",
"Port": 3306,
"Database": "CHANGE_ME",
"Username": "CHANGE_ME",
"Password": "CHANGE_ME",
"Table Name": "currencysync"
},
"Currency Sync Interval Seconds": 300.0
}
MySql
- Holds all connection details needed to connect to your shared MySQL database.Host
- The IP or hostname of the MySQL server.Port
- The port used by the MySQL server (default is usually 3306).Database
- The database name that holds the currency sync table.Username
- Username used to authenticate with the database.Password
- Password used to authenticate with the database.Table Name
- The name of the table that stores player currency data.
Currency Sync Interval Seconds
- How often (in seconds) the plugin checks for updates and syncs balances.
Database Example
steamid | economy | rewards | updated |
---|---|---|---|
76561198012345678 | 1520.50 | 80 | 1718912345 |
76561198234567890 | 340.00 | 15 | 1718912398 |
76561198456789012 | 9000.00 | 120 | 1718912421 |
steamid
- The player's Steam64 ID. This acts as the unique key for their data.economy
- Their current balance from the Economics plugin.rewards
- Their current points from the Server Rewards plugin.updated
- Unix timestamp (UTC) of when the record was last changed. The plugin uses this to decide which server's data is the most up to date.