Storage and economy
Choose the saved SQLite or MySQL storage and use the built-in wallet or a Vault economy.
Storage and economy
The default setup stores player progress in a local SQLite database and uses the plugin's own saved wallet. No extra plugin is required.
Player data
In endless mode, money, speed, upgrades, pen contents, shop unlocks and other progress are saved per player. The default database file is plugins/StealAnEgg/data.db. Arena positions and shop stands are saved separately in arenas.yml.
The default storage type is sqlite. To use MySQL or MariaDB, set storage.type to mysql and fill in the connection details under storage.mysql. The plugin uses a table prefix of sae_ by default. Changing storage requires a server restart. Back up the old database before switching; data is not copied between database types automatically.
storage.autosave-seconds defaults to 60 seconds. The plugin also saves data when players leave and during shutdown.
Economy modes
| Mode | How it works | Requirements |
|---|---|---|
internal | The game keeps its own saved balance per player. This is the default. | None. |
vault | Purchases and earnings use the player's normal server economy balance. | Vault and a compatible economy provider. |
If Vault is unavailable or has no usable economy provider, Vault mode falls back to the internal wallet and writes a warning to the server log.
Optional Vault payout
With internal mode, economy.vault-payout.enabled: true can pay part of a player's session earnings into Vault when they leave. The default is off. The default payout is 10% of session earnings. max-per-session: -1 means there is no cap; set a non-negative amount to cap it.
Changing economy mode while players are playing is not recommended. Make the change while the arena is empty, then restart the server.