Database Stats

$10.99

Sold by: dFxPhoeniX

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.

Categories: , ,

Description

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

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.

Version 2.0.0 | Updated January 12, 2025
  • Added Added Cache Sync option
  • Added Added more APi's
  • Added Added new Server Command
  • Fixed The code have been optimized
  • Fixed Fixed some bugs
Version 1.9.4 | Updated January 8, 2025
  • Added Added Server Commands
  • Fixed Fixed some bugs
Version 1.9.2 | Updated January 4, 2025
  • Added Added Is Banned
  • Added Added Is Muted
  • Fixed Some optimizations
  • Fixed Fixed some bugs
Version 1.9.0 | Updated December 30, 2024
  • Added Added Last Position
  • Fixed Fixed some bugs

Discussions

There are no discussions yet.

Leave a reply

Your email address will not be published. Required fields are marked *

Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?

• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.

Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA

• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.

Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.

Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)

Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)

Product Enquiry

Please Login to make enquiry about this product