Skip to main content

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 in plugins/MultiLang/messages.yml.

Default Messages

You can view the default message values in the GitHub repository.

Available Message Keys

Message Examples

Console Message

Key: console Default:
Usage: Shown when a console tries to execute a player-only command.

Subcommand Not Found

Key: subcommands.not-found Default:
Usage: Shown when a subcommand doesn’t exist.

Subcommand Edit Error

Key: subcommands.edit Default:
Usage: Shown when /lang edit syntax is incorrect.

Already Selected Language

Key: already Default:
Usage: Shown when a player tries to select a language they’ve already selected.

Current Language

Key: current Default:
Usage: Shows the player’s current language. {language} is replaced with the language name.

Current Language (Other Player)

Key: current-other Default:
Usage: Shows another player’s current language. {player} and {language} are replaced with actual values.

Player Not Found

Key: not-found Default:
Usage: Shown when a specified player doesn’t exist or isn’t online.

Language Not Found

Key: lang-not-found Default:
Usage: Shown when a specified language doesn’t exist in the configuration.

Language Changed

Key: changed Default:
Usage: Shown when a player successfully changes their language. {language} is replaced with the language name.

GUI Title

Key: gui.title Default:
Usage: The title shown in the language selection GUI.

GUI Current Language Item

Key: gui.current Default:
Usage: The name of the item that shows the current language in the GUI.

Customizing Messages

You can customize any message by editing messages.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
Example:

Complete Example

Here’s a complete example of customized messages:

Best Practices

  1. Keep messages clear - Use clear, concise language
  2. Use color codes - Make important messages stand out
  3. Test messages - Make sure messages display correctly in-game
  4. Be consistent - Use consistent color schemes and formatting
  • Configuration - General configuration guide
  • GUI - Customize the language selection GUI