Jump to content

Database Stats 2.0.0

$10.99
   (3 reviews)
Message added by dFxPhoeniX,

If you want a website that uses this plugin, take a look at Rust Premium Website.

1 Screenshot

  • 38.9k
  • 243
  • 68.85 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 EasyVote)
  • 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 deserializeData = false)
async Task<object> API_GetPlayerDataChSync(string userid, string key, bool deserializeData = false) - Support Cache Sync
void API_SetPlayerData(string userid, string key, object data, bool serializeData = false)
void API_SetPlayerDataChSync(string userid, string key, object data, bool serializeData = false) - Support Cache Sync
  • Like 1

dFxPhoeniX's Collection

User Feedback

1.5m

Downloads

Total number of downloads.

7.3k

Customers

Total customers served.

108.9k

Files Sold

Total number of files sold.

2.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.