Skip to content

Translations

Jan Kluka edited this page Nov 1, 2026 · 5 revisions

Translations

X-Prison ships with five languages for everything players read. Every player can also pick their own with /xprison language (see Each player picks a language), and you can add your own languages and change any translation. The server default is set in config.yml:

language: de
Code Language
en English (default)
de Deutsch
es Español
fr Français
pt_br Português (Brasil)

Then run /xprison reload (or restart). The console logs Language: Deutsch (de). An unknown code logs a warning, lists the available ones and falls back to English. pt-BR and PT_BR work too.

Each player picks a language

/xprison language (alias /xprison lang) opens a menu with every installed language and a Server default entry. Players can also type /xprison language de or /xprison language default. /xprison stays admin-only - players can only use its language part.

Want a shorter command? Add aliases to language-menu.command-aliases, e.g. [language, lang]. It is empty by default so it never clashes with another plugin's /language.

  • Players who never picked a language, or who picked Server default, read the language: from config.yml - and keep following it when you change it.
  • Players who picked a specific language keep it until they change it.
  • The choice is stored in the database (XPrison_PlayerLanguages), so on MySQL it follows a player across your network.
  • Permission: xprison.language, granted to everyone by default. Remove it to hide the command.
  • Which languages players see: enabled-languages in config.yml, e.g. [en, de]. Empty = every installed language. The server language is always available. A player who had picked a language you disable goes back to the server default.
  • The menu and its messages live under language-menu: in config.yml (aliases, title, rows, slots, items and the three messages) and are translated like every other text.
  • Per-language look: language-menu.languages.<code> can set slot, material, material-selected, name, lore, glow, custom_model_data or item_model; anything missing is taken from language-menu.item. Languages without their own slot fill slots in order, then the next free slots of the menu - raise rows if you add many languages.
language-menu:
  languages:
    de:
      slot: 13
      material: YELLOW_BANNER
      name: '<yellow>Deutsch'

What follows the player's choice: every chat message, title and action bar sent to them, every menu they open, their X-Prison placeholders (e.g. on a scoreboard), the lore of the pickaxe they hold (redrawn the moment they switch) and items created for them (bombs, booster items, withdrawn currency notes, the first-join pickaxe). Broadcasts are sent to each player in their own language.

What stays in the server language: the console, holograms (leaderboards and mines) and the admin tools. Items keep the language they were created in - a bomb made for a German player still reads German after it is traded, and items made in different languages do not stack.

Your own languages and translations

plugins/X-Prison/lang/ holds your own translation files. X-Prison creates it with a README.txt and an empty languages.yml; plugin updates never change it.

Which text a player reads, in this order:

  1. A line in plugins/X-Prison/lang/ - always wins, even where you edited the English text.
  2. The bundled translation - only while your English line is still the default text.
  3. The text in your config file.

Layout

File Translates
lang/languages.yml Your own languages (pl: Polski) and new names for bundled ones
lang/<code>/<config>.yml plugins/X-Prison/<config>.yml, e.g. lang/de/ranks.yml
lang/<code>/enchants/<name>.yml plugins/X-Prison/enchants/<name>.json
lang/exported/ Output of /xprison language export - never loaded

A file only needs the lines you change, under the same keys as the config it translates:

# lang/de/ranks.yml
messages:
  rank_up: '<yellow>Rang erreicht: %Rank-2%'

Change a bundled translation

  1. /xprison language export de - writes the complete German pack to lang/exported/de/.
  2. Copy only the lines you want to change into lang/de/<same file>.yml and edit them.
  3. /xprison reload.

Add a new language (e.g. Polish)

  1. In lang/languages.yml: languages: { pl: Polski }
  2. /xprison language export en - writes every translatable line with your current English text to lang/exported/en/.
  3. Copy those files to lang/pl/ and translate them. Lines you leave out show your English text.
  4. /xprison reload - Polski now appears in /xprison language.

Your own quests, ranks, Battle Pass tiers or enchants can be translated the same way - files are checked against your current configs, not the defaults.

Mistakes are reported in the console on start and on /xprison reload, prefixed Translations: - broken YAML, a file for a config that does not exist, unknown keys, text where the original has a list (or the other way round), and %placeholders% that differ from the original. /xprison language list shows every installed language.

What gets translated

  • Every chat message, title and action-bar text in the module configs.
  • Every player menu: enchants, disenchant, pickaxe settings and notifications, pickaxe slot, quality, skins, ranks, prestiges, rebirths, quests, Battle Pass, daily rewards, milestones, boosters, leaderboards, gangs, AutoMiner and the /toggles menu - titles, item names and lore.
  • The names, descriptions and proc messages of every built-in enchant.
  • The default quests, Battle Pass tiers, daily rewards and milestones that ship with the plugin.

Admin tools stay in English: the /xprison menus, the setup wizard, /xprison subcommands and other admin-only command output. Addons are translated too - see Addons.

Addons

Needs X-Prison 2026.3.15.1. Every addon below ships German, Spanish, French and Brazilian Portuguese and follows each player's /xprison language choice, with the same rules as the core: your edited lines always win and your files stay in English on disk.

Addon From version What follows the player
Shop 1.1.0 Messages, every shop menu and item
Pets 1.4.0 Messages, menus, pet and egg items, rarity names
Black Market 1.3.0 Messages, menu, items, announcements and the restock boss bar
Events 1.1.0 Messages, announcements, titles and the event boss bar
Casino 1.2.0 Messages, every game menu, game and bet names
Coinflip 1.2.0 Messages and menus
Crystals 1.2.0 Messages, menus, crystal items and tier names
Lucky Blocks 1.1.0 Messages, lucky block items and rarity names
Raffle 1.1.0 Messages, menus and announcements (when running as an X-Prison addon)
Bosses 1.1.0 Messages, menus, holograms and boss bars of your own boss, boss names, the Boss Hunter enchant
Player Vaults 1.1.0 Messages, menus and the default vault name
Momentum 1.3.0 Messages, the bossbar, tier names and tier-up alerts
Attachments 1.2.0 Messages, menus, attachment and slot items, tier and type names

Addon enchants - Animated Enchants 1.6.0, Animated Enchants 2 1.6.0, Animated Enchants 3 1.5.0, Vanguard 1.3.0, Ascendant 1.3.0, Cluster Bomb 1.7, Drill 1.6, Lucky Block 1.7, Pet Finder 1.1, Voucher Finder 1.3, Robot Finder 1.3, Bomb Finder 1.2 and Echo Booster: the name, menu description and proc message follow the player, exactly like the built-in enchants.

Standalone plugins - XPrisonArmors 2.2.0, X-Robots 1.3.0 and X-PrivateMines 2026.4.1.0 follow the player's language too when they run next to X-Prison 2026.3.15.1+: every message and menu, armor pieces, robot items, tier and skin names, leaderboards and the visit list. Their overrides live in the same place, under XPrisonArmors, XPrisonRobots and X-PrivateMines.

Change an addon's translation in plugins/X-Prison/lang/addons/<Addon>/<code>/<file>, where <Addon> is the addon's folder in plugins/X-Prison/addons/ and <file> is the config it translates:

You want to change Write it in
A Shop message in German lang/addons/Shop/de/shop-messages.yml
A Momentum tier name in French lang/addons/Momentum/fr/momentum.yml (Momentum's config.yml is translated as momentum.yml)
The Black Hole enchant in Spanish lang/addons/AnimatedEnchants/es/blackhole.yml (an enchant's .json is translated as .yml)

Only the lines you change are needed, under the same keys as the addon's own file. A line there wins even where you edited the English text. The bundled translations are inside each addon's jar under lang/<code>/ - open the jar as a zip to copy one as a starting point.

What stays in the server language: the console, admin commands, things everyone sees at once (holograms and leaderboards placed in the world, PlaceholderAPI values of public boards, Bosses' admin editor) and the reward lines of Lucky Block and Mega Boss reward lists.

Your own text always wins

A line is translated only while it is still the default English text. Change a message in ranks.yml and that line keeps your wording in every language, while the untouched lines around it are translated. That makes switching safe on a customised server - and it also means a heavily customised setup (like a sold setup pack) stays mostly in its own language.

To change a translated line, write it in the config file in the language you want. It is then your text and is never replaced.

Your files are never changed

Translations are applied in memory when a file is loaded. On disk your configs stay in English, even when the plugin saves a file (for example after an in-game edit). Switching back to language: en restores the original text immediately. An edit you save in-game reaches every language at once.

Quest filters

A TRIGGER_ENCHANT quest filter matches the enchant id (e.g. explosive) or its plain display name, so filters keep working in every language. Use the id to be safe.

Corrections

The translations were written for X-Prison and checked automatically: every placeholder, colour tag and & code matches the English original. If a native speaker spots a better wording, send it in - it ships in the next update.

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally