> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/edcoinflip/reference/messages.md).

# Messages & Languages

Every chat text is in `messages.yml`. A message is a string or a list of lines; `''` turns it off. Colours: `&` codes and `&#RRGGBB`. `{prefix}` works everywhere. New keys of an update are added from the defaults by themselves.

Main keys: `created`, `created-broadcast`, `won`, `lost`, `result-broadcast`, `cancelled`, `cancelled-all`, `expired`, `refunded`, `paid-offline`, the errors (`invalid-amount`, `unknown-currency`, `currency-no-permission`, `amount-too-low`, `amount-too-high`, `not-enough`, `max-open`, `not-loaded`, `game-gone`, `own-game`, `busy`, `opponent-busy`), `help` / `help-admin`, `migrate-*`, and `age.*` (the units of `{age}` in the menus).

Broadcasts are sent for coinflips of at least the currency's `broadcast-min`, when created and when decided.

The 3D flip's own texts (title, pot line, name labels, result title and line) are in `config.yml` → `animation.scene.texts`.

## Per-player languages

With the optional EdLang plugin, any text (messages, menus, scene texts) can hold `%lang_<key>%` keys that are shown in each player's language. Without EdLang nothing changes.
