Skip to main content

Economy Configuration

Settings under economy: for cost/reward integration.

KeyTypeDefaultDescription
enabledbooleanfalseEnable/disable economy integration.
currencystring"vault""vault" (Vault economy) or "coins" (CoinsEngine).
costsmap<string, double>0.0 per toolCost deducted per tool use, keyed by tool name.
rewardsmap<string, double>0.0 per toolReward paid per operation (per block/log/use/crop), keyed by tool name.
messagesmap<string, string>see exampleCustom 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%"

See Alsoโ€‹