Storage & Stats
How player stats are stored and how to switch to MySQL.
Siegebreak tracks per-player stats - kills, deaths, wins, losses, games played, damage dealt and taken - and persists them to a database.
SQLite (default)
Out of the box, stats are stored in a local SQLite file. No setup required.
database:
type: "sqlite"
sqlite:
file: "stats.db"The file is created in plugins/Siegebreak/.
MySQL
For networks or shared stats across servers, use MySQL:
database:
type: "mysql"
mysql:
host: "localhost"
port: 3306
database: "siegebreak"
username: "root"
password: "password"
useSSL: falseCreate the database (default name siegebreak) before starting the server.
The plugin creates its own tables, but not the database itself.
How saving works
- Stats are cached in memory while the server runs.
- The cache auto-saves every 5 minutes and again on shutdown.
Always stop the server cleanly so the final save runs. A hard kill can lose up to the last few minutes of stat changes.
Viewing stats
Players can see their own stats with /siegebreak stats, and any tracked stat
is available through PlaceholderAPI.