Skip to content

Economy

HeadDB can charge players for heads through Vault and a Vault-compatible economy plugin.

Economy is configured in:

text
plugins/HeadDB/economy.yml

Requirements

RequirementNotes
VaultRequired when economy support is enabled.
Economy providerAny compatible economy plugin supported by Vault.
Economy enabledenabled: true in economy.yml.

If economy is disabled, HeadDB does not charge players for heads.

Basic configuration

yaml
enabled: false
provider: vault

prices:
  any-head: 0.0
  player-heads: 0.0
  categories: {}
  custom-categories: {}
  heads: {}

Pricing priority

HeadDB resolves prices from most specific to least specific.

PrioritySourceExample
1Per-head priceheads.123: 50.0
2Custom category pricecustom-categories.event: 25.0
3Remote category pricecategories.blocks: 10.0
4Player-head priceplayer-heads: 15.0
5Fallback priceany-head: 5.0

Examples

Flat price:

yaml
prices:
  any-head: 10.0
  player-heads: 10.0

Category prices:

yaml
prices:
  any-head: 5.0
  categories:
    blocks: 2.0
    decoration: 8.0

Per-head prices:

yaml
prices:
  heads:
    '123': 100.0
    'custom:dragon': 250.0
    'player:f16df3ef-06b8-443e-9166-fba6689585b4': 25.0

Quote keys that contain special characters.

Troubleshooting

ProblemLikely causeFix
Heads are freeEconomy disabled or price is 0.0.Enable economy and configure prices.
Economy unavailableVault or provider missing.Install Vault and a compatible economy plugin.
Player cannot buyInsufficient balance or permission issue.Check balance, permissions, and console.
Wrong priceA more specific price overrides fallback.Check per-head, custom-category, and category entries.

Released by SilentDevelopment.