Language and messages
FeatherBoard keeps its chat messages in plugins/FeatherBoard/lang/<language>.yml. The lang option in config.yml selects the file:
lang: 'en'This loads plugins/FeatherBoard/lang/en.yml. If the file or a key is missing, the plugin falls back to its built-in English text, so an incomplete translation is safe to use.
Overriding a message
A language file is a flat YAML map of message keys. Add only the keys you want to change:
# plugins/FeatherBoard/lang/en.yml
prefix: '&8[&cFeatherBoard&8] &r'
config-reload: '&aConfiguration reloaded.'
config-board-reload: '&aScoreboard {board} reloaded.'Messages support the same & colour codes as scoreboards. Keys such as {board} and {0} are replaced by the plugin when the message is sent.
Some keys are lists, for example the /fb help output:
help:
- '&8&m--------------------------------'
- '&cFeatherBoard &7commands'
- '&8/&afb reload &7- Reload the configuration'
- '&8/&afb show <board> &7- Show a board'Supported language files
FeatherBoard ships English messages as defaults. Additional languages are created by the community: copy the English file, translate the values, and keep the keys unchanged. Then set lang to the new file name (without .yml).
Client language is different
The lang option changes plugin messages. To show a different scoreboard design based on the player's Minecraft language, use the LANGUAGE assignment method and name boards en.yml, nl.yml, etc. See assigning scoreboards.
Reloading
After editing a language file, run:
/fb reloadA full reload is enough; new scoreboard files still need /fb reload -all.
