π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
.
π» Commands return messages
success: This message is shown when a team is successfully created. (Placeholders: %prefix%, %team%)
success: Displays when a team is deleted. (Placeholders: %prefix%, %team%)
successall: Shows when all teapms have been deleted. (Placeholders: %prefix%)
success: This message is shown when the display name of a team successfully changed. (Placeholders: %prefix%, %team%, %display_name%)
other/success: Message shown when another player successfully joins a team. (Placeholders: %prefix%, %player%, %team%)
other/successall: Displays when another player joins all teams. (Placeholders: %prefix%, %player%)
self/success: Message for when a player joins a team themselves. (Placeholders: %prefix%, %team%)
self/successall: Shows when the player joins all teams. (Placeholders: %prefix%)
other/success: Message shown when another player leaves a team. (Placeholders: %prefix%, %player%, %team%)
other/successall: Displays when another player leaves all teams. (Placeholders: %prefix%, %player%)
self/success: Message for when a player leaves a team themselves. (Placeholders: %prefix%, %team%)
self/successall: Shows when the player leaves all teams. (Placeholders: %prefix%)
empty: Message shown when no teams are found. (Placeholders: %prefix%)
string/header: Header for the list of teams. (Placeholders: %prefix%)
string/row: Format for each row in the team list, showing the teamβs display name, ID, and priority. (Placeholders: %prefix%, %team%, %display_name%, %priority%)
string/header: Header where you can write anything. (Placeholders: %prefix%, %team%, %display_name%, %priority%)
string/members_header: Displays "Members" for the teamβs member list.
string/no_members: Message shown when a team has no members.
string/members_row: Format for listing each member of the team. (Placeholders: %member%)
string/footer: Footer where you can write anything in multiple lines.
string/header: Header where you can write anything. (Placeholders: %prefix%, %player%)
string/main_team: Displays the main team of the player (The main team is the highest priority team of the player). (Placeholders: %display_name%, %team%)
string/team_list_header: Displays "His Teams: " for the player team's list.
string/no_members: Message shown when to player don't belong to any team. (Placeholders: %player%)
string/team_list_row: Format for listing each team that the player belongs to. (Placeholders: %display_name%, %team%, %priority%)
string/footer: Footer where you can write anything in multiple lines.
β Error Messages
unknown_command: This message is shown when an unknown command is used. (Placeholders: %prefix%)
no_permission: Message for when a player does not have permission to use a command. (Placeholders: %prefix%)
player_not_found: Message when a specified player is not found. (Placeholders: %prefix%, %player%)
team_not_found: Message when a specified team is not found. (Placeholders: %prefix%, %team%)
team_already_exists: Message when a team with the specified name already exists. (Placeholders: %prefix%, %team%)
invalid_priority: Message for invalid priority input. (Placeholders: %prefix%)
create: Message when no team is specified during the team creation command. (Placeholders: %prefix%)
delete: Message when no team is specified during the team elimination command. (Placeholders: %prefix%)
setdisplay: Message when no team is specified during the team display name changing command. (Placeholders: %prefix%)
leave: Message when no team is specified during the team leaving command. (Placeholders: %prefix%)
join: Message when no team is specified during the team joining command. (Placeholders: %prefix%)
teaminfo: Message when no team is specified during the teaminfo command. (Placeholders: %prefix%)
only_player/leave: Message when the leave command is executed by the console but a player is not specified. (Placeholders: %prefix%)
only_player/join: Message when the join command is executed by the console but a player is not specified. (Placeholders: %prefix%)
create/priority: Message when the sender don't specify the priority of the team to create. (Placeholders: %prefix%)
self/not_in_team: Message when a player is not in the specified team. (Placeholders: %prefix%, %team%)
self/not_in_anyteam: Message when a player is not in any team. (Placeholders: %prefix%)
other/not_in_team: Message when a player is not in the specified team. (Placeholders: %prefix%, %team%)
other/not_in_anyteam: Message when a player is not in any team. (Placeholders: %prefix%)
other/already_in_team: Message when another player is already in the specified team. (Placeholders: %prefix%, %player%, %team%)
self/already_in_team: Message when the player trying to join is already in the specified team. (Placeholders: %prefix%, %team%)
displayname_not_specified: Message when a player uses the command without adding the new display name in it. (Placeholders: %prefix%)
invalid_format: Message when the Display Name is not valid. (Placeholders: %prefix%)
π§© Placeholders
%prefix%: Returns the plugin prefix, defined on the prefix line of the message config.
%team%: Returns the code name of the team involved.
%player%: Returns the code name of the player involved.
%display_name%: Returns the display name of the team involved.
%priority%: Returns the priority of the team involved.
%member%: Returns the member name. (This one is applicated on
/xteams teaminfo
command.)
Last updated