Language
Customize messages and add translations.
Selecting a Language
config.yml
lang: 'en_US'
| File | Language |
|---|---|
lang/en_US.yml | English |
lang/es_ES.yml | Spanish |
Message Keys
General
| Key | Description | Placeholders |
|---|---|---|
prefix | Plugin prefix | — |
Commands
| Key | Description |
|---|---|
command.only-players | Non-player runs player-only command |
command.no-permission | Missing permission |
command.reload-success | Config reloaded |
Market
| Key | Description | Placeholders |
|---|---|---|
market.sell-success | Successful sale | {sold_amount}, {money} |
market.sell-nothing | Nothing to sell | — |
market.sell-error | Transaction error | — |
History
| Key | Description | Placeholders |
|---|---|---|
history.invalid-time | Invalid time format | — |
history.empty | No records found | {player} |
history.display | Page layout (list) | {entries}, {previous_page}, {next_page}, {player}, {page}, {max_page} |
history.entry | Single record line | {player_head}, {recipe}, {quantity}, {quality}, {total} |
history.entry_hover | Hover tooltip on a record | {player}, {time_ago}, {exact_date} |
history.navigation.* | Prev/Next buttons | {page} |
Note: All messages use MiniMessage formatting. See the Adventure documentation for the full tag reference.
Adding a Language
Copy a file
Duplicate lang/en_US.yml and rename it (e.g., fr_FR.yml).
Translate
Translate the values. Keep keys and placeholders unchanged.
Set in config
Set lang: 'fr_FR' in config.yml and reload.