Messages & Language
Every message TradeSMP shows comes from a language file, so you can reword anything without touching code. It ships with English, French, and Spanish, and you can add any other language yourself.
Where the files live
plugins/TradeSMP/lang/
en.yml English
fr.yml French
es.yml SpanishPick which one to use with the language key in config.yml:
language: enChange a value, save, and run /tradesmp reload.
Add your own language
You do not need an update from us to add a language.
Adding Hindi, for example
- In
config.yml, setlanguage: hindi.- Run
/tradesmp reload. TradeSMP sees there is nohindi.ymland creates one for you, a full copy of the English file.- Open
plugins/TradeSMP/lang/hindi.ymland translate the values.- Run
/tradesmp reloadagain to apply your text.
Nothing breaks while you translate
Until you fill it in, English text keeps showing. And any single line you leave untranslated falls back to English, so a half done file never shows blank or broken messages.
Colors and styles
Messages support more than plain & color codes:
| Style | Example |
|---|---|
| Classic color codes | &aGreen text |
| Hex colors | "d399Custom green |
| Gradients | supported |
| Rainbow | supported |
The main messages
Here are the keys you are most likely to reword. Placeholders like %level% get filled in by the plugin, keep them as they are.
| Key | Shown when |
|---|---|
level-up | A player’s level goes up. |
level-down | A player’s level goes down. |
level-check-self | A player checks their own level. |
level-check-other | A player checks someone else’s level. |
locate-result | A village is found. |
locate-cooldown | The locator is still on cooldown. |
locate-requires-level | A non +3 player tries the locator. |
ban-message | A player is banned at -3. |
trade-set-success | An admin sets a level. |
reload-success | The config and language files reload. |
The file-version line
Each language file starts with a
file-versionnumber. Leave it alone. It works the same way asconfig-version, letting new message keys merge in on update. See Configuration.
Nav