messages.yml
📄 Introduction
The messages.yml file allows you to customize all messages that the xTeams plugin sends to players, helping create a tailored experience for your server. This file includes messages for team creation, deletion, joining, leaving, and other related actions. You can also customize error messages and command outputs to improve the clarity and overall user experience.
💡 Breakdown of the messages.yml file
prefix: Defines the primary prefix for all messages. Supports regular color codes (&) and hex color codes of the format
#RRGGBB
and&x&R&R&G&G&B&B
.
⚙️ Plugin Commands Messages
plugin/unknown_command: This message is shown when a player uses a command that no exists. (Placeholders: %prefix%)
plugin/reload_success: This message is shown when a player uses the reload command. (Placeholders: %prefix%)
📝 Whitelist Command Messages
success: This message is shown when a player enables the whitelist. (Placeholders: %prefix%)
already: This message is shown when a player tries to enable the whitelist when it is already enabled. (Placeholders: %prefix%)
success: This message is shown when a player disables the whitelist. (Placeholders: %prefix%)
already: This message is shown when a player tries to disable the whitelist when it is already disabled. (Placeholders: %prefix%)
success: This message is shown when a player add another player to the whitelist. (Placeholders: %prefix%, %player%)
already: This message is shown when a player tries to add a player to the whitelist and he is already on it. (Placeholders: %prefix%, %player%)
usage: This message is shown when a player uses the add command but not in the right way. (Placeholders: %prefix%)
success: This message is shown when a player removes another player from the whitelist. (Placeholders: %prefix%, %player%)
already: This message is shown when a player tries to remove a player to the whitelist and he is not on the whitelist. (Placeholders: %prefix%, %player%)
usage: This message is shown when a player uses the remove command but not in the right way. (Placeholders: %prefix%)
header: This message is shown has header for the list of players in the whitelist. (Placeholders: %prefix%)
row: This is show for every player on the whitelist when use the list command. (Placeholders: %player%)
empty: This message is shown when a player uses the list command but the whitelist has no players. (Placeholders: %prefix%)
success: This message is shown when a player uses the cleanup command. (Placeholders: %prefix%)
🚧 Maintenance Whitelist Command Messages
success: This message is shown when a player enables the maintenance whitelist. (Placeholders: %prefix%)
already: This message is shown when a player tries to enable the maintenance whitelist when it is already enabled. (Placeholders: %prefix%)
success: This message is shown when a player disables the maintenance whitelist. (Placeholders: %prefix%)
already: This message is shown when a player tries to disable the maintenance whitelist when it is already disabled. (Placeholders: %prefix%)
success: This message is shown when a player add another player to the maintenance whitelist. (Placeholders: %prefix%, %player%)
already: This message is shown when a player tries to add a player to the maintenance whitelist and he is already on it. (Placeholders: %prefix%, %player%)
usage: This message is shown when a player uses the maintenance add command but not in the right way. (Placeholders: %prefix%)
success: This message is shown when a player removes another player from the maintenance whitelist. (Placeholders: %prefix%, %player%)
already: This message is shown when a player tries to remove a player from the maintenance whitelist and he is not on the whitelist. (Placeholders: %prefix%, %player%)
usage: This message is shown when a player uses the maintenance remove command but not in the right way. (Placeholders: %prefix%)
header: This message is shown has header for the list of players in the maintenance whitelist. (Placeholders: %prefix%)
row: This is show for every player on the maintenance whitelist when use the list command. (Placeholders: %player%)
empty: This message is shown when a player uses the maintenance list command but the maintenance whitelist has no players. (Placeholders: %prefix%)
success: This message is shown when a player uses the maintenance cleanup command. (Placeholders: %prefix%)
❌ Error Messages
no_permission: Message for when a player does not have permission to use a command. (Placeholders: %prefix%)
database_exception: Message when a command have a database error. (Placeholders: %prefix%)
🧩 Placeholders
%prefix%: Returns the plugin prefix, defined on the prefix line of the message config.
%player%: Returns the code name of the player involved.
Last updated