BitAspire Wiki
XenoTokensXenoTokens

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.

FieldPurpose
enabledTurns a currency on or off without deleting its folder
nameHuman-friendly name used for alias resolution
display-nameDisplay-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.yml
  • currencies/<id>/events.yml
  • currencies/<id>/gui.yml
  • currencies/<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 Coin
  • 1000-4999 -> Golden Coin
  • 5000+ -> 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.

Last updated on

On this page