Messages and language
Change the language, edit any message and style text with MiniMessage
Every message a player sees comes from a lang file in plugins/MoneyRace/lang. Menus come from menus.yml and item names from items.yml. Nothing is hardcoded in the plugin.
Pick a language
en_US, fr_FR and es_ES are included. Set it in config.yml and reload:
language: fr_FRRun /moneyrace admin reload after changing it.
Write your own
- Copy
en_US.ymlto a new name in thelangfolder, for examplehi_IN.yml. - Edit the text.
- Set
language: hi_INinconfig.ymland reload.
Any key missing from your file falls back to English, so you can translate a bit at a time.
MiniMessage
Text uses MiniMessage. A few examples:
| You write | You get |
|---|---|
<#55FF55>green</#55FF55> | Green text with a hex colour |
<b>bold</b> | Bold text |
<gradient:#FFD54F:#FF8A3D>Finale</gradient> | A colour gradient |
<prefix> | The message prefix |
Words in angle brackets like <player>, <amount> and <team> are placeholders that the plugin fills in. Keep them in your translation. The comment above each key says which ones it uses.
Other text
- The server name in messages is
server-nameinconfig.yml. - The money format is
economy.format(<symbol><amount>) witheconomy.currency-symbolandeconomy.number-pattern. - Sidebar, tab and hologram text are lang keys under
hudandholograms. - Help lines are under
helpin the lang file, so you can reword or translate commands.
Keep it readable
Most players use a dark background. Money works well in green and losses in red. Avoid dark blue and dark grey for anything important.