Skip to main content

Storage

Player progress is saved to a database. SQLite works out of the box, MySQL is optional.

Pick a backend

With no setup, the plugin stores everything in a single data.db file inside the zCollections folder. This is the right choice for a single server. There is nothing to install or configure.

storage:
type: sqlite
tip

If you run one server, stay on SQLite. It is the simplest option and needs zero setup.

When data is saved

Player data is written to the database in three cases:

  • On a timer, set by save-interval in config.yml.
  • When a player logs out.
  • When the server stops.

Switching backends later

Progress does not transfer

Switching between SQLite and MySQL does not copy existing progress between them. Plan your storage before players build up data, or be ready to start fresh on the new backend.