Translations
Built-in languages
The following languages are included with the plugin and can be selected via the language option in config.yml:
| Code | Language |
|---|---|
en | English (default) |
zh | Chinese (Mandarin Simplified) |
hi | Hindi |
es | Spanish |
fr | French |
ar | Arabic |
bn | Bengali |
ru | Russian |
de | German |
ko | Korean |
pt | Portuguese (Brazilian) |
ja | Japanese |
tr | Turkish |
pl | Polish |
it | Italian |
nl | Dutch |
sv | Swedish |
cs | Czech |
uk | Ukrainian |
el | Greek |
da | Danish |
fi | Finnish |
no | Norwegian |
hu | Hungarian |
ro | Romanian |
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:
- Open the
plugins/LasersEnigma/lang/directory on your server. - Find the built-in translation files (e.g.,
errors.en.json,messages.en.json, etc.). - For each file, create a copy with your language code (e.g.,
errors.th.jsonfor Thai). - Modify the
"language"block in each file:"language": {"languageCode": "th","language": "Thai","isDefault": false} - Translate the
"translation"values in each file. - Update the
languagefield inconfig.ymlto your language code (e.g.,th). - 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.