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 - English

  • es.yml - Spanish

  • fr.yml - French

  • de.yml - German

  • pt.yml - Portuguese

  • ru.yml - Russian

  • pl.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:

  1. Open config.yml in your JailsPlus directory

  2. Find the language setting near the top:

    language: "en" # (en/es/ru/fr/de/pt/pl)
  3. Change the value to your preferred language code

  4. Save the file and use /jails reload to 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:

  1. Open the appropriate language file (e.g., en.yml)

  2. Locate the message you want to change

  3. Edit the message text, keeping placeholders intact

  4. Save the file

  5. Use /jails reload to 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.yml

  • Ensure 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 reload after editing language files

  • Some changes may require a server restart

Default Values

If you need to reset a language file to its defaults:

  1. Delete the language file

  2. Restart your server

  3. 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