- 24 Jul 2022
- 1 Minute to read
Customization & Wiping
- Updated on 24 Jul 2022
- 1 Minute to read
SimpleStats was designed with customization in mind.
Wiping data
You can wipe your data with any SQL browser you have. By default most web hosting companies do have PHPMyAdmin or something similar installed. You can also directly connect to your SQL server if you know how to do that.
Make sure that you get a backup ready before performing those queries. In case something goes wrong your data might be lost after it. There is no way to restore it.
Wiping stats for a single server
If you want to wipe all the statistics for a single server, you can run the following query to delete them:
DELETE FROM ruststats WHERE server_id = [ID]
Replace [ID] with the server id
Wiping stats for all servers
Wiping statistics for all servers is quite simple:
DELETE FROM ruststats
Create your own design
By default, the statistics come with 3 designs: rust-themed, dark and light. However, if you use a custom website, you are free to create your own one. Edit the config.php and change theme to custom. After that, go into the css folder and copy the light or dark.css file into a new file. Name that custom.css. All values are descriptive named, so you can now play around with the RGBA colors. If you need help finding the right colors, you can use a RGBA Colorpicker
Disabling server selection but having multiple scoreboards
By default, server selection is enabled. However, you are free to disable this. If you still want to show multiple server statistics (but on different pages), you can do this by adding ?server=ID to the iframe src attribute. It should then look like this: src="stats/stats.php?server=1". Use the respective id for the server you want the stats to load for. This way you are able to display different scoreboards on different pages.
(Rust) Tracking environment / suicide kills
The rust config enables you to enable/disable environment kills as well as suicide kills. Environmental kills are all kills related to weather, hunger, thirst and NPCs. Suicide kills are all kills done through /kill.