Messages
MultiLang has customizable messages that can be translated. This guide covers all available message keys and how to configure them.Message File
Plugin messages are stored inplugins/MultiLang/messages.yml.
Default Messages
You can view the default message values in the GitHub repository.Available Message Keys
| Key | Description |
|---|---|
console | Sent when you try to execute a command that can be executed from players only |
subcommands.not-found | When a subcommand does not exist |
subcommands.edit | When you use an invalid /lang edit syntax |
already | When you have already chosen a language as primary language |
current | Current locale message |
current-other | Current locale of another player |
not-found | When a player does not exist |
lang-not-found | When a language does not exist |
changed | When you change your language |
gui.title | GUI title |
gui.current | Current language item name |
Message Examples
Console Message
Key:console
Default:
Subcommand Not Found
Key:subcommands.not-found
Default:
Subcommand Edit Error
Key:subcommands.edit
Default:
/lang edit syntax is incorrect.
Already Selected Language
Key:already
Default:
Current Language
Key:current
Default:
{language} is replaced with the language name.
Current Language (Other Player)
Key:current-other
Default:
{player} and {language} are replaced with actual values.
Player Not Found
Key:not-found
Default:
Language Not Found
Key:lang-not-found
Default:
Language Changed
Key:changed
Default:
{language} is replaced with the language name.
GUI Title
Key:gui.title
Default:
GUI Current Language Item
Key:gui.current
Default:
Customizing Messages
You can customize any message by editingmessages.yml:
All messages support Minecraft color codes (e.g.,
&a for green, &c for
red, &l for bold).Placeholders
Some messages support placeholders:{language}- The language name{player}- The player name
Complete Example
Here’s a complete example of customized messages:Best Practices
- Keep messages clear - Use clear, concise language
- Use color codes - Make important messages stand out
- Test messages - Make sure messages display correctly in-game
- Be consistent - Use consistent color schemes and formatting
Related Guides
- Configuration - General configuration guide
- GUI - Customize the language selection GUI