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, menu, builder and package name, and Discord text. It applies to the whole server.

Supported languages

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

Letter case does not matter, _ reads as -, and pt or br mean pt-BR. An unsupported code logs a warning and falls back to English.

Where the texts are

There is one set of files, at the usual paths, written in the language in use:

FileTexts
messages.ymlEvery message
menu/*.ymlEvery menu; menu/bedrock/*.yml the market's Bedrock forms
builders.ymlBuilder names, descriptions and level names
packages.ymlCategory names
market.ymlThe market's category names
webhooks.ymlThe Discord texts
config.ymlThe NPC nameplate format and the seed name for new packages

The files are first written in English. The language they are in is remembered in data/metadata.yml.

Switching

general:
  language: tr

Then /builders admin reload, or a restart. The plugin first copies every file to backups/language-<old>-<time>/, then, file by file:

Your fileWhat happens
Untouched since it was writtenReplaced by the new language's copy, comments included
EditedEach text still equal to the old language's is rewritten; every text you changed is kept

The console says how many texts were updated and how many edited ones were kept. Switching back later works the same way, so your own wording survives any number of switches. If a file cannot be switched, the console says why and the switch is tried again on the next reload or restart.

Missing lines

A message missing from your messages.yml uses the English text built into the plugin, whatever the language; a menu button missing from your file is taken from the shipped copy. See Messages and menus.

Notes

  • Command names and their arguments stay English in every language: /builders warehouse deposit all is the same command everywhere.
  • Prices, stats and slots in builders.yml, packages.yml and the menus are the same in every language; a switch only touches texts.
  • 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