Economy Configuration
Settings under economy: for cost/reward integration.
| Key | Type | Default | Description |
|---|---|---|---|
enabled | boolean | false | Enable/disable economy integration. |
currency | string | "vault" | "vault" (Vault economy) or "coins" (CoinsEngine). |
costs | map<string, double> | 0.0 per tool | Cost deducted per tool use, keyed by tool name. |
rewards | map<string, double> | 0.0 per tool | Reward paid per operation (per block/log/use/crop), keyed by tool name. |
messages | map<string, string> | see example | Custom economy messages: insufficient-funds, cost-deducted, reward-earned. Supports %amount% and %currency% placeholders. |
Exampleโ
economy:
enabled: true
currency: "vault"
costs:
pickaxe: 10.0
axe: 5.0
bucket: 1.0
hoe: 2.0
rewards:
pickaxe: 1.0 # Per block
axe: 0.5 # Per log
bucket: 0.1 # Per operation
hoe: 0.3 # Per crop
messages:
insufficient-funds: "&cYou need %amount% %currency% to use this tool!"
cost-deducted: "&eCost: %amount% %currency%"
reward-earned: "&aReward: %amount% %currency%"