Database Setup

Obfeco supports multiple database types to store player and currency data.

SQLite (Default)

SQLite is the default and easiest to use, as it requires no setup. Data is stored in plugins/Obfeco/obfeco.db.

storage-type: SQLITE

MySQL / MariaDB

MySQL is recommended for multi-server networks where you want to sync balances across all servers.

  1. Create a database for Obfeco (e.g., CREATE DATABASE obfeco;).
  2. Update config.yml with your connection details:
storage-type: MYSQL

database:
  host: "your-db-host"
  port: 3306
  database: "obfeco"
  username: "obf-user"
  password: "secure-password"
  pool-size: 10
  1. Restart the server. Obfeco will automatically create the necessary tables.

YAML (Local Files)

YAML stores player data in individual files under plugins/Obfeco/currencies/{currency_id}/{uuid}.yml.

storage-type: YAML

While simple, YAML is not recommended for large servers as it can become slow with thousands of files.