Economy Bridge
CoreLib provides a shared economy bridge so business modules can use similar configuration for costs, rewards, and formulas.
Common fields
| Field | Meaning |
|---|---|
enabled | Enable economy logic. |
provider | Economy provider: auto, vault, or excellenteconomy. |
currency | Currency ID. Leave blank for the Vault default currency. |
base_cost | Base cost. |
cost_formula | Dynamic cost formula. |
currencies | Multi-currency list. |
Providers
| Provider ID | Plugin | Notes |
|---|---|---|
vault | Vault | Works with any Vault-compatible economy plugin. |
excellenteconomy | ExcellentEconomy | Supports multiple currencies. |
Automatic provider selection
When provider is blank or auto:
| Condition | Result |
|---|---|
currency is not blank | Prefers ExcellentEconomy. |
currency is blank | Uses Vault with its default currency. |
An explicit provider is given | Looked up by ID; fails when unavailable. |
ExcellentEconomy always requires a non-blank currency, and auto never infers a default ExcellentEconomy currency — set currency explicitly.
Economy actions
| Action ID | Parameters |
|---|---|
givemoney | required amount; provider=auto; currency="" |
takemoney | required amount; provider=auto; currency="" |
setmoney | required amount; provider=auto; currency="" |
yaml
actions:
- 'givemoney amount=100 provider=vault'
- 'takemoney amount=25.5 provider=excellenteconomy currency=gems'Check Vault or ExcellentEconomy loading if economy actions do not work.