-
Notifications
You must be signed in to change notification settings - Fork 0
Migration Guide
This page explains how to migrate balances into Coffers from another Vault-backed economy provider.
Coffers includes migration helpers for servers that are already using another economy plugin through Vault.
This is useful when you want to:
- replace an older economy plugin with Coffers
- preserve balances during a plugin transition
- move from a legacy provider into the Coffers ecosystem
Both the modern and legacy lines include migration commands.
Coffers currently migrates from:
- another economy provider already registered through Vault on the same server
This means Coffers does not need a custom importer for every economy plugin individually.
Instead, it reads balances from a Vault-backed provider that is already available on the server.
Before migrating:
- back up your server
- back up your existing economy data
- confirm that Vault is installed if your current economy depends on Vault
- confirm that the old provider is visible through Vault
- make sure you know whether you are migrating into the modern line or the legacy line
Recommended:
- test migration on a copy of the server first
- verify balances after migration before making permanent changes
Use:
/coffers migratevault/coffers migratevault <provider>
Use:
/cofferslegacy migratevault/cofferslegacy migratevault <provider>
If you do not specify a provider:
- Coffers selects the highest-priority external Vault economy provider it can find
If you do specify a provider:
- Coffers tries to match the provider name or plugin name you give
Example:
/coffers migratevault Essentials
If the provider cannot be found:
- the migration will fail with a message
- Coffers will show the list of available providers when possible
Coffers migration currently imports:
- player balances from the source Vault provider
The migration writes those balances into:
- the default Coffers currency
This is important:
- migration is centered on the default Coffers currency
- Vault-based migration does not automatically map advanced multi-currency setups from other systems
For each offline player known to the server, Coffers checks:
- whether the source provider has an account
- the player's current balance in the source provider
- the player's current balance in Coffers
If the balance differs:
- Coffers sets the Coffers balance to match the source provider
- a migration transaction is recorded with audit metadata
If the balance is already the same:
- the account is skipped
After migration, Coffers reports:
- provider name
- imported accounts
- updated accounts
- skipped accounts
This helps you confirm whether the migration actually changed balances or only checked them.
Back up all current economy-related data.
Install Coffers and make sure it starts correctly.
Leave the old Vault-backed provider available so Coffers can read from it.
Run:
/coffers migratevault
or:
/coffers migratevault <provider>
Use the legacy command instead if you are working on the legacy line.
Review the migration output and verify balances manually.
Only after confirming results, decide whether to disable or remove the old provider from active use.
Modern line:
coffers.command.migratevault
Legacy line:
cofferslegacy.command.migratevault
These permissions should generally be restricted to administrators.
Recommended migration habits:
- migrate during a maintenance window
- back up before every migration attempt
- test on a copy of the server first
- verify balances for a sample of real player accounts
- confirm Vault provider selection before finalizing the change
Avoid these common issues:
- trying to migrate without Vault installed when the old provider depends on Vault
- uninstalling the old provider before Coffers can read from it
- assuming multi-currency mappings happen automatically
- skipping backups before migration
- migrating on a live production server without checking the result
The migration concept is the same on both lines:
- both use Vault-backed provider discovery
- both import into the default Coffers currency
- both record migration activity in their own economy system
The main difference is simply which plugin line you are using:
-
Coffers.jaruses/coffers migratevault -
Coffers-Legacy.jaruses/cofferslegacy migratevault
Coffers migration does not currently guarantee:
- automatic multi-currency mapping from another economy system
- migration of Vault bank accounts
- plugin-specific custom data outside normal balance reads
If your old provider stored special data outside the standard Vault economy interface, that data may require manual handling.
If your old economy plugin is available through Vault, Coffers can help you import balances into its own system with built-in migration commands.
The safest path is:
- back up everything
- install Coffers
- keep the old Vault provider available
- run migration
- verify balances
- then retire the old setup