The plugin supports multiple storage backends for tracking which collectables each player has unlocked.
This is configured in your main config.yml under the storage: block.
playerdata/collectables/storage:
backend: FLATFILE # FLATFILE | SQLITE
flatfile:
dir: playerdata/collectables
# directory path relative to the plugin folder
sql:
jdbcUrl: jdbc:sqlite:${plugin.data}/collectables.db
username: ''
password: ''
pool:
maxSize: 6
minIdle: 2
| Field | Notes |
|---|---|
backend |
Selects which storage mode to use: FLATFILE or SQL |
flatfile.dir |
Directory where YAML files are saved (per-player) |
sql.jdbcUrl |
JDBC URL. Defaults to SQLite with a database file inside the plugin folder |
sql.username/password |
Credentials for MySQL/MariaDB. Leave empty for SQLite |
sql.pool.* |
HikariCP connection pool options. Tune for your DB load |
If you want SQLite, make sure you’re running the plugin jar that includes the SQLite driver:
CollectablesCodex-with-sqlite.jar
By default, it stores data in plugins/CollectablesCodex/collectables.db
No extra setup required