Skip to content

Languages

unknown edited this page Nov 14, 2026 · 1 revision

🌍 Languages

ManhuntStar comes in:

Code Language
en English (default)
pt-br Brazilian Portuguese
fr French
ru Russian
zh-cn Simplified Chinese

Every message and the whole Menu are translated. Commands, option keys and config.yml keys stay in English.

Changing the language

Any of these, and it switches right away:

/manhunt settings language pt-br
  • /manhunt menu → Settings → General → Language
  • general.language: pt-br in config.yml, then /manhunt reload

Tab completion lists the files in the lang/ folder, including your own.

Translating ManhuntStar

  1. Copy lang/en.yml to a new file in the same folder, named after your language, for example es.yml:
    • Paper: plugins/ManhuntStar/lang/
    • Mods: config/manhuntstar/lang/
  2. Translate the texts between quotes. Keep:
    • the placeholders in <...> that the plugin fills in: <bot>, <player>, <amount>, <seconds>, <phase>...;
    • the color and style tags in MiniMessage format: <red>, <gold>, <bold>, <u>...;
    • the version: line as it is.
  3. Run /manhunt reload, then /manhunt settings language es.

Anything you leave out falls back to English, so you can translate a little at a time. The file name is the language code: lowercase, with - (es, de, pt-pt); _ is turned into -.

Editing the bundled texts

You can edit the included files (en.yml, pt-br.yml...) to change any message, for example the prefix:

prefix: "<dark_red><bold>Manhunt*</bold></dark_red> <dark_gray>»</dark_gray> "

When an update changes the default texts (the file's version goes up), your file is updated in place: new texts are added, renamed keys are moved, and the texts you edited are kept. Only a text whose default changed a lot replaces yours. A copy of your previous file goes to lang/old/<language>-v<version>.yml. A file with your own name (es.yml) is never touched.

A language file with a YAML error is never rewritten: fix it and restart. The console says which file it is.

Sending your translation

Want it shipped with ManhuntStar? Open a pull request adding the file to core/src/main/resources/lang/ (see Contributing). A test (LanguageFilesTest) checks that every bundled language has the same keys and placeholders as en.yml.

Clone this wiki locally