Currencies & Ranges
Understand the global registry, per-currency folders, aliases, and token representation ranges.
XenoTokens resolves currencies in two layers: the global registry in config.yml, and the folder-based files under currencies/<id>/.
Global registry
config.currencies is where you decide which currency IDs should be loaded at all.
| Field | Purpose |
|---|---|
enabled | Turns a currency on or off without deleting its folder |
name | Human-friendly name used for alias resolution |
display-name | Display-oriented name that can also resolve as an alias |
The default currency is selected with config.default-currency.
Folder structure
Each currency ID should have a folder like this:
currencies/<id>/currency.ymlcurrencies/<id>/events.ymlcurrencies/<id>/gui.ymlcurrencies/<id>/lang.yml
If currency.yml is missing, that currency is skipped.
Alias resolution
XenoTokens resolves currencies by:
- the currency ID
- the configured
name - the configured
display-name
That alias flow is what lets commands and placeholders accept more than one spelling for the same currency.
Token system and ranges
currency.yml can expose a presentation system such as Coin, plus ranges based on the player's current balance.
Example idea:
1-999->Silver Coin1000-4999->Golden Coin5000+->Diamond Coin
This affects placeholders like %xtk_token_system% and %xtk_token_range%, plus any shop message or reward command that uses the same values.
Placeholders
PlaceholderAPI values provided by XenoTokens through the %xtk_*% expansion.
Shop System
Configure the per-currency GUI shop in XenoTokens.
Last updated on