πmessages.yml
π messages.yml Documentation
π Introduction
The messages.yml
file allows you to customize all messages that the xBossBar plugin sends to players, providing a tailored experience for your server. This file includes messages for command usage, creation, modification, player management, deletion, reload, help, and error handling. You can also customize error messages and command outputs to improve clarity and user experience.
π‘ Breakdown of the messages.yml
file
messages.yml
fileπ prefix
prefix
prefix: "#ff4b18&lx&r&f&lBossBar &8Β»&r"
Defines the main prefix for all messages. Supports legacy color codes &
and hex #RRGGBB
/ &x&R&R&G&G&B&B
. (Placeholders: β)
π» Commands return messages
command.usage
command.usage
command:
usage: "%prefix% #FF0000π« Unknown Command. &7Use &f/xbb help &7to get command list."
usage: Shown when an invalid command is executed. (Placeholders: %prefix%
)
command.create
command.create
command:
create:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb create <name> <color> <style> <per-player> <title>"
success: "%prefix% #a0ff72β Successfully created '%name%' bossbar. [%personalized%, %color%, %style%, %title%&r#a0ff72]"
invalid_color: "%prefix% #FF0000π« Invalid Color. &7Available colors: &fblue&7, &fgreen&7, &fpink&7, &fpurple&7, &fred&7, &fwhite&7, &fyellow"
invalid_style: "%prefix% #FF0000π« Invalid Style. &7Available styles: &fsegmented_6&7, &fsegmented_10&7, &fsegmented_12&7, &fsegmented_20&7, &fsolid"
usage: Invalid command usage. success: Shown when a bossbar is successfully created. (Placeholders: %prefix%
, %name%
, %personalized%
, %color%
, %style%
, %title%
) invalid_color / invalid_style: Shown when wrong values are entered. (Placeholders: %prefix%
)
command.settitle
command.settitle
command:
settitle:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb settitle <bossbar> <title>"
success: "%prefix% #a0ff72β Successfully set '%name%' bossbar title to %title%."
usage: Invalid usage message. success: Title successfully set. (Placeholders: %prefix%
, %name%
, %title%
)
command.setstyle
command.setstyle
command:
setstyle:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb setstyle <bossbar> <style>"
success: "%prefix% #a0ff72β Successfully set '%name%' bossbar style to %style%."
invalid_style: "%prefix% #FF0000π« Invalid Style. &7Available styles: &fsegmented_6&7, &fsegmented_10&7, &fsegmented_12&7, &fsegmented_20&7, &fsolid"
success: Style set. (Placeholders: %prefix%
, %name%
, %style%
)
command.setcolor
command.setcolor
command:
setcolor:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb setcolor <bossbar> <color>"
success: "%prefix% #a0ff72β Successfully set '%name%' bossbar color to %color%."
invalid_color: "%prefix% #FF0000π« Invalid Color. &7Available colors: &fblue&7, &fgreen&7, &fpink&7, &fpurple&7, &fred&7, &fwhite&7, &fyellow"
success: Color set. (Placeholders: %prefix%
, %name%
, %color%
)
command.addplayer
/ removeplayer
command.addplayer
/ removeplayer
command:
addplayer:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb addplayer <id / *> <player / *>"
success:
one: "%prefix% #a0ff72β Successfully added player '%target%' to the bossbar."
all: "%prefix% #a0ff72β Successfully added all players to the bossbar."
removeplayer:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb removeplayer <id / *> <player / *>"
success:
one: "%prefix% #ff7272β Successfully removed player '%target%' from the bossbar."
all: "%prefix% #ff7272β Successfully removed all players from the bossbar."
success/one/all: Shown when players are added or removed. (Placeholders: %prefix%
, %target%
)
command.remove
command.remove
command:
remove:
usage: "%prefix% #FF0000π« Invalid Usage. &7Use &f/xbb delete <id / *>"
success:
one: "%prefix% #ff7272β Successfully removed the bossbar '%name%'"
all: "%prefix% #ff7272β Successfully removed all bossbars."
success: Bossbar(s) removed. (Placeholders: %prefix%
, %name%
)
command.reload
command.reload
command:
reload:
error: "%prefix% #FF0000π« Error reloading xBossBar plugin."
success: "%prefix% #a0ff72β xBossBar plugin reloaded."
success / error: Plugin reload status messages. (Placeholders: %prefix%
)
command.help
command.help
Multi-line help page:
command:
help:
- " "
- " "
- " #ff4b18&lx&r&f&lBossBar &8Β» &r&fHelp"
- " "
- "#fff18d&l α΄Κα΄Ι’ΙͺΙ΄ α΄α΄α΄α΄α΄Ι΄α΄
κ±"
- "&f /xΚΚ Κα΄Κα΄ #707070Β» #ccccccShows this help message"
- "&f /xΚΚ Κα΄Κα΄α΄α΄
#707070Β» #ccccccReloads the plugin configuration"
- " "
- " #fff18d&lα΄Κα΄α΄α΄Ιͺα΄Ι΄ & α΄α΄
Ιͺα΄ α΄α΄α΄α΄α΄Ι΄α΄
κ±"
- "&f /xΚΚ α΄Κα΄α΄α΄α΄ <name> [color] [style] [personalized] <title> #707070Β» #ccccccCreate a bossbar"
- "&f /xΚΚ κ±α΄α΄α΄Ιͺα΄Κα΄ <name> <title> #707070Β» #ccccccSet bossbar title"
- "&f /xΚΚ κ±α΄α΄κ±α΄ΚΚα΄ <name> <style> #707070Β» #ccccccSet bossbar style"
- "&f /xΚΚ κ±α΄α΄α΄α΄Κα΄Κ <name> <color> #707070Β» #ccccccSet bossbar color"
- " "
- " #fff18d&lα΄Κα΄Κα΄Κ α΄α΄Ι΄α΄Ι’α΄α΄α΄Ι΄α΄"
- "&f /xΚΚ α΄α΄
α΄
α΄Κα΄Κα΄Κ <bar> <player> #707070Β» #ccccccShow bar to player (or * for all)"
- "&f /xΚΚ Κα΄α΄α΄α΄ α΄α΄Κα΄Κα΄Κ <bar> <player> #707070Β» #ccccccRemove bar from player"
- " "
- " #fff18d&lΚα΄κ±κ±Κα΄Κ α΄
α΄Κα΄α΄Ιͺα΄Ι΄"
- "&f /xΚΚ Κα΄α΄α΄α΄ α΄ <name> #707070Β» #ccccccDelete a bossbar"
- "&f /xΚΚ Κα΄α΄α΄α΄ α΄ * #707070Β» #ccccccRemove all bossbars"
- " "
- " "
help: Lines shown for the /xbb help
command.
β Error Messages
error:
no_permission: "%prefix% #FF0000π« You don't have permission to use this command."
bossbar_not_found: "%prefix% #FF0000π« BossBar not found."
no_permission / bossbar_not_found: Shown for permission errors or invalid bossbar references. (Placeholders: %prefix%
)
π§© Placeholders
%prefix%
β Main message prefix.%name%
β BossBar name.%target%
β Player name.%color%
β Color of the BossBar.%style%
β Style of the BossBar.%title%
β Title of the BossBar.%personalized%
β Indicates if the BossBar is per-player.
Tip: Supports hex and legacy Minecraft color codes. Placeholders can be dynamically replaced in plugin messages.
Last updated