Languages & Translations

Languages & Translations

Change the language of the plugin, translate its messages yourself, and format them with MiniMessage.

View as Markdown ·

On this page

#Translations

Every line the plugin can print lives in one file:

PhoenixLobby/translations/translations.en.yml

Messages to players, command replies, the words the placeholders fall back on and the whole in-game editor are all in there. Edit it, run /plobby reload, and the new text is live.

To stop a message from appearing at all, set it to '' (empty quotes).

circle-info

Older versions kept this in messages.yml. On the first start after upgrading, the plugin moves your text across on its own and renames the old file to old_messages.yml. See Where did my messages.yml go?

#Prefix

Most messages start with the plugin prefix rather than spelling it out, so it can be changed in one place.

YAML
en:
  plugin-prefix: '&#3148a9&lPhoenixLobby &8»&7'

Anywhere %prefix% appears in a message it is replaced with that value, which means renaming the plugin across every message is a single edit.

#Language

The language the plugin loads is set in config.yml, or from Editor > Settings > Language.

YAML
language: EN_US

Settings (Language)

The picker lists every language the plugin knows about:

Code Language Code Language
EN_US English (United States) AR_SA Arabic
PT_BR Portuguese (Brazil) PT_PT Portuguese (Portugal)
ES_ES Spanish FR_FR French
DE_DE German IT_IT Italian
NL_NL Dutch SV_SE Swedish
PL_PL Polish CS_CZ Czech
RU_RU Russian TR_TR Turkish
EL_GR Greek HI_IN Hindi
ID_ID Indonesian VI_VN Vietnamese
JA_JP Japanese KO_KR Korean
ZH_CN Chinese (Simplified)

circle-exclamation

Only the languages included in the build you are running can be picked. The rest are greyed out in the editor. At the moment the plugin ships with English, so the way to run it in another language is to translate the file yourself.

#Translating the plugin

The file is one flat list of keys, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone.

YAML
en:
  spawn-not-set: '%prefix% Spawn has not been set.'
  spawn-teleportation: '%prefix% You have been teleported to spawn.'

Everything sits under the language code at the top of the file, and a value can be a single line or a list of them.

YAML
en:
  error-processing:
  - '&cAn error occurred while processing this action (Check console):'
  - '&7%message%'

Anything wrapped in % is filled in by the plugin, so %prefix%, %player% and %identifier% have to survive the translation to keep working. Colour codes can be moved around freely.

circle-info

English is always loaded first, and the chosen language is laid over the top of it. A key you have not translated yet falls back to its English line rather than printing blank, so a file can be translated a piece at a time.

circle-info

Keep a copy of your translated file before updating the plugin. New keys are added to it automatically, but it is the file your work lives in.

circle-info

The letters and words used for times, such as the maintenance countdown, are in the time-format section. See Changing the time words.

#The editor is translated too

Everything under the menus.editor keys is the text of the in-game editor — the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language.

#Rich Text (MiniMessage)

Phoenix Lobby understands MiniMessage tags, like <red>, <bold> or <gradient:#ff5555:#5555ff>, on top of the classic & colour codes. This lets you use gradients, hover text and clickable links, none of which & codes can do.

#Format

Example Result
<red>Hello Red text
<#ff8800>Hello Any hex colour
<gradient:#5e4fa2:#f79459>Phoenix Lobby</gradient> Text fading from one colour to another
<bold><underlined>Warning Bold and underlined
<rainbow>Welcome back!</rainbow> Each letter a different colour
<hover:show_text:'Click me'>Hover</hover> Text with a tooltip
<click:open_url:'https://example.com'>Our site</click> Text that opens a link

A closing tag is optional. <red>Hello colours the rest of the line, while <red>Hello</red> there colours only the first word.

#Where it works

Place Notes
Holograms Including <font:...> from a resource pack
Scoreboard Title and lines
MOTD Message, and the player count on Paper
Tablist Header and footer
Join and quit messages And the rest of the plugin's chat messages
Menu titles, item names and lore Anywhere the editor lets you write text

#Where it doesn't work

Nametag prefixes and suffixes are the exception. Minecraft draws those through the scoreboard team system, which only understands the old colour codes, so a tag there is reduced to the nearest legacy colour.

#Usage notes

  • Legacy & codes, including &#RRGGBB hex, keep working everywhere exactly as before.
  • In chat messages, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing &c and <red> in the same line falls back to legacy and prints the tag.
  • Everywhere else the two can be mixed freely. A scoreboard line or a hologram is read as MiniMessage as soon as it contains a tag, and any & codes in it are converted along with it.
  • A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working.

circle-exclamation

MiniMessage needs Paper or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on & codes there.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping