PkLogin
Configuration

Languages

The 18 shipped translations and how to change or customise them.

Changing the language

Install the plugin and start the server once so the files are generated.

Set languageFile in config.yml to the file you want:

config.yml
languageFile: 'messages_es.yml'

Run /pklogin reload, then edit the message file to taste.

Shipped translations

CodeLanguage
arSpanish (Argentina)
brPortuguese (Brazil)
cnChinese (simplified)
czCzech
deGerman
enEnglish
esSpanish
frFrench
hrCroatian
huHungarian
itItalian
ltLithuanian
plPolish
ptPortuguese
ruRussian
srSerbian
trTurkish
uaUkrainian

Each file is messages_<code>.yml in plugins/PkLogin/. The sources live in pklogin-common/src/main/resources/com/pumpkiiings/pklogin/config/lang/.

Customising messages

Edit the file named by languageFile directly. Messages are plain YAML and support the usual colour codes:

messages_en.yml
messages:
  before-login:
    subtitle: '&7Use: /login <password>'

Where messages appear

Two switches control the on-screen surfaces:

config.yml
ui:
  # Title-bar messages.
  use-title-bar: true

  # Action-bar messages.
  use-action-bar: true

Contributing a translation

Copy messages_en.yml, translate the values, and open a pull request with the file named for its language code. Keys are shared across every file, so a missing key falls back to nothing rather than to English — translate them all.

On this page