πŸ“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

πŸ”– 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: "%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:
    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:
    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:
    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:
    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:
    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:
    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:
    error: "%prefix% #FF0000🚫 Error reloading xBossBar plugin."
    success: "%prefix% #a0ff72βœ” xBossBar plugin reloaded."

success / error: Plugin reload status messages. (Placeholders: %prefix%)


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