Language files
Every text players see is in config/britaessentials/lang/: en.json (English) and de.json (German).
Players see the language of their game when there is a file for it (usePlayerLanguage in general.toml);
otherwise the language set there.
Change a text
- Open
lang/en.json(orde.json) and change the text after the key. - Run
/brita reload.
"nick.set": "{prefix}<green>Set</green> {0}'s nickname to {1}."
{prefix}is theprefixfromgeneral.toml.{0},{1}and so on are filled in by the mod. Lines starting with//explain them:"//nick.set": "{0} player, {1} new nickname".- Colours:
&codes,#rrggbb, MiniMessage tags such as<green>,<#ff6400>,<gradient:#ff6400:#ffffff>and<rainbow>. - Normal text takes
messageColorfromgeneral.toml. The bundled texts mark keywords with<#ff6400>, done with<green>, not allowed or failed with<red>, and something to change with<yellow>.
Add a language
Copy en.json to a file named after the language code, such as fr.json, translate the texts and run
/brita reload. A key missing from your file shows the text of the server's language, then English.
After an update
New texts are added to your files, and texts you never changed follow the new wording. Your own wording
stays. The folder lang/.defaults/ is what the mod compares against; leave it alone.