Storage
Backends
Section titled “Backends”Set storage.type in config.yml:
| Type | Notes |
|---|---|
yaml | Default. Atomic writes to plugins/RexGraves/graves.yml |
sqlite | Local plugins/RexGraves/graves.db |
mysql | Remote database under storage.mysql |
SQLite
Section titled “SQLite”storage: type: sqlite sqlite: file: graves.dbIf the database is empty and graves.yml exists, graves are imported once into SQLite.
storage: type: mysql mysql: host: 127.0.0.1 port: 3306 database: rexgraves username: root password: "" pool-size: 5 use-ssl: falseAutosave
Section titled “Autosave”storage: autosave-seconds: 30Periodic backup save. Set to 0 to disable the timer. Saves still run after create / loot / remove.
Writes are async. Unchanged data is skipped. Failed writes are retried on the next autosave.