Skip to content
ID

Storage

MF-SlimeFun stores block and player-profile information using independently configurable storage backends. The shipped configurations support SQLite, MySQL, and PostgreSQL; the actual backend is selected separately in block-storage.yml and profile-storage.yml.

For the default SQLite configuration, relevant files include:

data-storage/MF-SlimeFun/block-storage.db
data-storage/MF-SlimeFun/profile.db
plugins/MF-SlimeFun/licenses/<uuid>.yml
plugins/MF-SlimeFun/Licenses.yml

The database paths are source-defined defaults, not a guarantee that every existing server uses them. External SQL data is stored on the configured database service and requires a separate backup.

Component Purpose
Block storage Persistent Slimefun block and machine data.
Profile storage Player profiles, research, and related progression data.
licenses/<uuid>.yml Technology License ownership by player UUID.
Licenses.yml Configuration of registered license definitions.
Items.yml Item-specific configuration and enable/disable settings.

The built-in file backend writes replacement entitlement sets through temporary-file replacement. Invalid license files are rejected rather than replaced as empty ownership data. Bulk operations on a custom storage implementation are not automatically atomic.

/sf license revoke <player> all also removes stored keys belonging to no-longer-installed addons. It does not erase research.

/sf migrate confirm
/sf cleardata <world|*> <block|oil|*> confirm

migrate starts legacy block/profile migration jobs; it does not convert SQLite to MySQL or PostgreSQL. cleardata deletes selected persistent world data. Do not run these commands as general repair tools on production.

  1. Stop the server normally before a file-level SQLite backup.
  2. Copy worlds, plugins/MF-SlimeFun/, relevant data-storage/ directories, and any legacy data still in use.
  3. Back up external database backends using a consistent database-native procedure.
  4. Restore the backup onto isolated staging, using separate database credentials.
  5. Test machines, inventories, networks, research, licenses, and claim permissions before an upgrade.

Restore both the previous JAR and a consistent data snapshot when rolling back a failed upgrade. Reverting only the JAR cannot undo writes made by a newer build.

A completed production restore test and runtime database-integrity verification were not supplied for this documentation baseline. The Atomic Delete B8.3 candidate discussed separately is not part of these source-derived guarantees.