-
Notifications
You must be signed in to change notification settings - Fork 0
Vault Compatibility
This page explains how Coffers works with Vault in both the modern line and the legacy line.
Coffers includes built-in Vault compatibility.
That means:
- you do not need a separate Coffers-to-Vault bridge plugin
- Coffers can register itself as a Vault economy provider
- existing Vault-aware plugins can interact with Coffers through the Vault economy interface
This applies to both:
Coffers.jarCoffers-Legacy.jar
Many Minecraft plugins were written to depend on Vault instead of directly integrating with a specific economy plugin.
By exposing a Vault-compatible economy provider, Coffers can work with those plugins while still using its own internal storage, transaction handling, and API design.
Vault compatibility is controlled through the config:
compatibility:
vault-bridge: autoAvailable modes:
-
autoRegister with Vault only when Vault is installed -
enabledForce Coffers to expose a Vault economy provider when Vault is present -
disabledNever register the Vault bridge
If the config value is missing or invalid, Coffers falls back to auto.
For most servers, use:
auto
This gives you the safest default behavior:
- if Vault is installed, Coffers registers its provider
- if Vault is not installed, Coffers simply skips Vault registration
If Vault is not present:
- Coffers still runs normally as its own economy plugin
- the Vault bridge is simply not registered
- plugins that require Vault will still need Vault installed on the server
Important:
- Coffers includes Vault compatibility
- Coffers does not replace the Vault plugin itself
If another plugin expects Vault to exist, you still need Vault installed.
The modern line registers a Vault economy provider named:
Coffers
This provider uses Coffers' default currency when responding through the Vault API.
That means Vault-aware plugins will interact with:
- the default Coffers balance
- the default Coffers currency
The Vault bridge uses Coffers internally for:
- account creation
- balance checks
- deposits
- withdrawals
- formatting
- currency name lookups
The legacy line registers a Vault economy provider named:
CoffersLegacy
Like the modern line, it uses the default Coffers Legacy currency when responding through the Vault API.
This allows older Vault-based plugin ecosystems to work with the legacy Coffers line while keeping the same overall project direction.
Coffers does not currently implement Vault bank account support.
For both modern and legacy lines:
- Vault bank operations return
NOT_IMPLEMENTED - personal account economy support is available
- bank account support should not be assumed
If a plugin specifically depends on Vault bank features, it may not behave as expected with Coffers at this stage.
Vault itself is primarily designed around a simpler economy model.
Because of that:
- Vault integrations use the default Coffers currency
- advanced Coffers multi-currency behavior is not fully exposed through the Vault layer
- richer Coffers economy features are available through direct Coffers integrations, not through the older Vault abstraction
This is one of the reasons Coffers includes both:
- Vault compatibility for legacy plugin ecosystems
- a separate Coffers API for richer direct integrations
Coffers can also migrate balances from another Vault-backed economy provider already present on the server.
Modern line:
/coffers migratevault/coffers migratevault <provider>
Legacy line:
/cofferslegacy migratevault/cofferslegacy migratevault <provider>
This is useful when:
- moving from an older economy plugin to Coffers
- replacing an existing Vault provider with Coffers
- preserving balances during a transition
Recommended usage:
- use
autofor most setups - keep Vault installed if your plugin stack depends on it
- migrate from older providers only after backing up your data
- use the Coffers API directly for richer integrations when possible
- rely on Vault compatibility mainly for older or third-party plugin support
No.
Coffers can register a Vault economy provider, but if another plugin requires the Vault plugin itself, Vault still needs to be installed.
No.
Vault support is mainly for legacy compatibility.
The full Coffers feature set, especially around richer metadata and future direct integration design, belongs to the Coffers API and Coffers internals.
Not in the same way as direct Coffers integrations.
Vault support is centered on the default currency.