Messages and Language¶
Every line players see can be reworded or translated. The plugin ships with five languages.
Pick a language¶
Set the language in config.yml:
The plugin includes these out of the box:
| Value | Language |
|---|---|
english |
English |
french |
French |
spanish |
Spanish |
italian |
Italian |
german |
German |
After changing it, run /zfb admin reload.
Edit the text¶
Language files live in plugins/zFrostBoats/lang/, one file per language. Open the one you use and change any line. This covers chat messages, the scoreboard, the boss bar, the action bar, the tab list, and the menu labels.
English is the fallback. If a line is missing from another language file, the English version is used, so you never end up with a blank message.
Do not edit lang-version
Like the config, each language file has a lang-version line the plugin manages for safe updates. Leave it alone.
Placeholders¶
Some lines contain {placeholders} in curly braces. The plugin replaces them at runtime. Keep them exactly as written.
| Placeholder | Becomes |
|---|---|
{prefix} |
The plugin chat prefix |
{player} |
A player name |
{slot} |
A match slot number |
{pct} |
A territory percent |
{time} |
Time left |
{players} / {max} |
Player count and cap |
{seconds} |
A countdown number |
Each line in the file lists the placeholders it supports in a comment above it.
Rewording a message
To change the join message, find this line in your language file:
and change the text after{prefix}:
Colors in messages¶
Messages support color codes, hex colors, gradients, rainbows, and your own named styles. That has its own page: Colors and Styles.