Docs
Languages
PulsePrison ships in English (messages.yml) and Spanish (messages_es.yml), selectable per player. Translating into another language is optional: any missing key is shown in English.
Configuration
yaml
# config.yml
language:
default: en
available:
- en
- es
allow-player-selection: true # false forces the default language for everyoneAdding your own language
- Add the code to
language.available, for examplept. - Restart the server: PulsePrison creates
messages_pt.ymlby copyingmessages.yml. - Translate whatever you want in that file. Anything left untranslated stays in English.
- Players pick it with
/language pt.
Commands
| Command | Aliases | Permission | Description |
|---|---|---|---|
/language | /lang | pulseprison.language | Show available languages |
/language <code> | pulseprison.language | Change language |
How it works
- The change applies instantly and only for that player; no restart needed.
- The choice is saved and restored on the next join.
- Every menu in
menus/andpmines/menus/uses@message.keykeys, so it shows in each player's language. - Actions with
@keytoo: a[broadcast] @keyreaches each player in their language. - Players can also change language from
/settings. - A missing key is looked up in this order: player language → default language → English.
- When you update the plugin, new keys are added to your files without overwriting what you changed.
Some texts of older commands (robots, cells, seasons, pets and part of the rank mines) are still written in code and show in English. Translating them is optional and does not affect functionality.