Skip to main content

Translations

Built-in languages​

The following languages are included with the plugin and can be selected via the language option in config.yml:

CodeLanguage
enEnglish (default)
zhChinese (Mandarin Simplified)
hiHindi
esSpanish
frFrench
arArabic
bnBengali
ruRussian
deGerman
koKorean
ptPortuguese (Brazilian)
jaJapanese
trTurkish
plPolish
itItalian
nlDutch
svSwedish
csCzech
ukUkrainian
elGreek
daDanish
fiFinnish
noNorwegian
huHungarian
roRomanian

To change the language, edit plugins/LasersEnigma/config.yml:

language: fr

⚠️ Restart the server twice after changing the language setting.

Per-player language​

Players can change their own display language in-game using:

/le lang <language>

The command accepts either the full language name (e.g. English, French) or its code (e.g. en, fr). Tab-completion suggests full language names.

This preference is stored per player in the _players.json file and overrides the server default.

Create a new language​

If your language is not listed above, you can create a custom translation:

  1. Open the plugins/LasersEnigma/lang/ directory on your server.
  2. Find the built-in translation files (e.g., errors.en.json, messages.en.json, etc.).
  3. For each file, create a copy with your language code (e.g., errors.th.json for Thai).
  4. Modify the "language" block in each file:
    "language": {
    "languageCode": "th",
    "language": "Thai",
    "isDefault": false
    }
  5. Translate the "translation" values in each file.
  6. Update the language field in config.yml to your language code (e.g., th).
  7. Restart the server twice.

What is the _players.json file?​

This file stores per-player language preferences used by the plugin.

Created a translation for a language?​

If you have created a new translation, please let us know! We will consider adding it as a built-in language. Thank you!

Language file structure​

The translation files use JSON format.

defaultForceUpdatePluginVersion​

Internal version tracking for translation updates.

languageCode​

The code for your translation (e.g., en, fr, zh), used in the plugin config.

language​

The human-readable name of the language (e.g., English, French, Chinese).

isDefault​

Must be true only for the English (en) files. Set to false for all other languages.

translations​

Array of code / translation pairs. The code is the internal translation key (never modify it) and the translation is the localized message.