DUXPLIMA Documentation

Languages

Every message and menu in eight languages, chosen with one setting.

general.language in config.yml sets the language of every chat line, action bar, boss bar, title and menu. It applies to the whole server.

Supported languages

CodeLanguage
enEnglish
trTurkish
esSpanish
pt-BRPortuguese (Brazil)
deGerman
frFrench
ruRussian
plPolish

pt, pt_br and TR are read as you would expect. An unsupported code logs a warning and falls back to English.

Where the files are

LanguageEdit
Englishmessages.yml and menu/*.yml, as always
Any otherlang/<code>/messages.yml and lang/<code>/menu/*.yml

A language's folder is written the first time it is chosen. After that it is yours: switching to another language and back never overwrites what you changed.

Switching

general:
  language: tr

Then /builders admin reload. No restart is needed.

Missing lines

Every file falls back in three steps: your copy, then the shipped translation, then the shipped English. A line an update adds appears in your language even though your file predates it, and a line a translation lacks appears in English rather than as a blank.

Notes

  • Command names and their arguments stay English in every language: /builders warehouse deposit all is the same command everywhere.
  • builders.yml and packages.yml hold prices and stats as well as names, so there is one copy of each whatever the language. It is written in the language set when the plugin first starts; after that, rename builders and categories there yourself.
  • The blueprint item's name and lore are messages (blueprintName, blueprintLore), so they follow the language. Its material and model stay in config.yml under start.item.
  • Money formatting is separate: economy.locale decides thousands and decimal marks.

Related: Messages and menus, config.yml