Jump to content

Database Stats 2.1.6

$10.99
   (3 reviews)
Message added by dFxPhoeniX,

This plugin is actively used on multiple live Rust servers in real gameplay conditions:

- Rust EvoPixel

- xOpsys

- RustVanilla

Ensuring stability, performance, and real-world balance.

Message added by dFxPhoeniX,

Database Compatibility Notice

  • MySQL: Use version 5.7.x or lower (recommended: 5.7.41)
  • MariaDB: Use version 10.9.x or lower (recommended: 10.9.8)

Using MySQL 8+ or MariaDB 10.10+?

Due to limitations in the outdated Oxide library, you must:

  • Enable Legacy Authentication Method
  • Ensure the mysql table uses utf8mb4 charset and collation (e.g. utf8mb4_unicode_ci)
    Failing to do so may cause DBNull errors and other compatibility issues.

 

1 Screenshot

  • 43k
  • 309
  • 96.41 kB

About Database Stats

Database Stats is a plugin that stores in the database (SQLite, MySQL) or file, certain statistics such as the number of kills, the number of deaths or even the amount of money from Economics for each player.

This plugin is usefull if you want to display this statistics on your website or app.

 

Database storage:

  • Steam ID
  • Rust nickname
  • IP
  • Ban Status
  • Mute Status (require BetterChat Mute)
  • Last Position
  • Join Date
  • Last Connected
  • Kills
  • Deaths
  • Shots
  • Headshots
  • Farmed Items
  • Looted Drops
  • Thrown Explosives
  • Money count (require Economics)
  • Points  count (require ServerRewards)
  • Playtime count (require PlaytimeTracker)
  • Votes count (require EasyVoteExtended)
  • Rank name (require BetterChat)
  • Custom value (require API Implementation in another plugin)

 

Server Commands:

  • databasestats.forceloaddata - Force loading all data.
  • databasestats.forcesavedata - Force saving all data.
  • databasestats.forceloadpluginshookdata- Force loading all the plugins hook data.
  • databasestats.forcewipedata - Force wiping all data you have enabled in config.
  • databasestats.forcesaveolddata - Force saving all old data if you have enabled in config.
  • databasestats.forceinitializedefaultdata  - Force initializing all default values data (May cause lag).

 

Configuration:

{
  "Data Type : 0 (Files) or 1 (SQLite) or 2 (MySQL)": 1,
  "Date format": "yyyy-MM-dd HH:mm:ss",
  "Enable Cache Sync": true,
  "Enable counter for Animals": true,
  "Enable counter for NPCs": true,
  "MySQL": {
    "Database Name": "rustserver",
    "Database New Save Table Name": "DatabaseStatsSaves",
    "Database Table Name": "DatabaseStats",
    "Host": "localhost",
    "Password": "pass",
    "Port": 3306,
    "Username": "rustuser"
  },
  "Save Data on New Save": false,
  "SQLite": {
    "Database Name": "databasestats.db",
    "Database New Save Table Name": "DatabaseStatsSaves",
    "Database Table Name": "DatabaseStats"
  },
  "Wipe on New Save": {
    "Deaths": false,
    "FarmedItems": false,
    "Headshots": false,
    "Kills": false,
    "LootedDrops": false,
    "Shots": false,
    "Suicides": false,
    "ThrownExplosives": false
  }
}

 

API Hooks:

object API_GetPlayerData(string userid, string key, bool deserialize = false, object defaultValue = null, Action<object> callback = null)
void API_SetPlayerData(string userid, string key, object data, bool serializeData = false)
void API_RemoveColumn(string key, bool includeNewSaveTable = false)
  • Like 1

User Feedback

2.2m

Downloads

Total number of downloads.

10.4k

Customers

Total customers served.

150.9k

Files Sold

Total number of files sold.

3.2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.