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.


Supported Backends


Config Structure

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

Fields

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

Using SQLite

See Placeholders for using System properties/env variables for config values.