Languages and Messages
JailsPlus supports multiple languages and provides extensive customization of all user-interface messages.
Note: All translations in Jails are securely embedded within the plugin and cannot be customized. However, you can change the language to your preference by configuring it in the config.yml file.
Language Files
JailsPlus comes with multiple language files located in the plugins/JailsPlus/lang/ directory:
en.yml- Englishes.yml- Spanishfr.yml- Frenchde.yml- Germanpt.yml- Portugueseru.yml- Russianpl.yml- Polish
Each file contains the same message keys but with translations for their respective languages.
Setting the Language
To change the plugin's language:
Open
config.ymlin your JailsPlus directoryFind the
languagesetting near the top:language: "en" # (en/es/ru/fr/de/pt/pl)Change the value to your preferred language code
Save the file and use
/jails reloadto apply changes
Message Categories
General Messages
Jail Operations
Interactions while jailed
Handcuff System
Flag and Selection System
Bail System
Note: Not all translation messages are listed here!
Color Codes
&0 - Black
&1 - Dark Blue
&2 - Dark Green
&3 - Dark Aqua
&4 - Dark Red
&5 - Dark Purple
&6 - Gold
&7 - Gray
&8 - Dark Gray
&9 - Blue
&a - Green
&b - Aqua
&c - Red
&d - Light Purple
&e - Yellow
&f - White
Formatting codes:
&k - Obfuscated
&l - Bold
&m - Strikethrough
&n - Underline
&o - Italic
&r - Reset
Example from en.yml:
Placeholders
JailsPlus uses curly braces {} for placeholders. Common placeholders:
{prefix}- The plugin prefix defined in config.yml{player}- Player's name{jails}- Jail name{flag}- Flag name{reason}- Reason for jailing{duration}- Jail duration{jailer}- Name of the staff member who jailed the player{location}- Formatted location string{time}- Remaining jail time{amount}- Bail amount
Customizing Messages
To customize messages:
Open the appropriate language file (e.g.,
en.yml)Locate the message you want to change
Edit the message text, keeping placeholders intact
Save the file
Use
/jails reloadto apply changes
Example:
Original:
Customized:
Troubleshooting
Missing Messages
If a message appears in English despite using another language:
Verify that you're using the correct language code in
config.ymlEnsure that you have executed the command
/jails reload
Placeholder Issues
If placeholders aren't working:
Ensure you haven't removed or changed placeholders in message strings
Check that placeholders use the correct format:
{placeholder}Verify that you're using the correct placeholder names
Color Code Problems
If color codes aren't working:
Check that you're using the ampersand format (
&) and not section symbol (§)Verify that color codes are correctly formatted without spaces
After Changes
Always use
/jails reloadafter editing language filesSome changes may require a server restart
Default Values
If you need to reset a language file to its defaults:
Delete the language file
Restart your server
The plugin will generate a new file with default values
The language system is designed to be flexible and extensible, allowing you to create the perfect user experience for your server's community.
Last updated