Repository navigation
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.
Any of these, and it switches right away:
/manhunt settings language pt-br
-
/manhunt menu→ Settings → General → Language -
general.language: pt-brinconfig.yml, then/manhunt reload
Tab completion lists the files in the lang/ folder, including your own.
- Copy
lang/en.ymlto a new file in the same folder, named after your language, for examplees.yml:- Paper:
plugins/ManhuntStar/lang/ - Mods:
config/manhuntstar/lang/
- Paper:
- 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.
- the placeholders in
- 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 -.
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.
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.
Getting started
Playing
Server owners
Developers
Download