-
Notifications
You must be signed in to change notification settings - Fork 14
config data
goflishMC edited this page Apr 22, 2025
·
1 revision
This section controls how Divinity stores and manages persistent data such as item information, player progress, and module state.
| Key | Description |
|---|---|
auto-save |
Interval (in minutes) to automatically save data to disk. |
storage.type |
Type of database to use. Options: sqlite (default) or mysql. |
storage.username |
MySQL username (only used when type: mysql). |
storage.password |
MySQL password (only used when type: mysql). |
storage.host |
Hostname or IP of the MySQL database server. |
storage.database |
Name of the MySQL database. |
purge.enabled |
Enables automatic removal of inactive player data. |
purge.days |
How many days of inactivity before a player’s data is removed. |
instant-save |
If true, saves immediately after every change (useful for testing, but lower performance). |
data:
auto-save: 15
storage:
type: sqlite
username: none
password: none
host: none
database: none
purge:
enabled: false
days: 60
instant-save: false-
sqliteis file-based and ideal for small to medium servers. The database is stored asdata.dbin the plugin folder. - For larger servers or network setups, switch to
mysqlfor external storage and syncing. - Purging is helpful for servers with high turnover or limited storage — inactive player data will be removed automatically.