| Name | BossBar |
| Syntax | bossbar ({auto}/create/update/remove) [<id>] (players:<player>|...) (title:<title>) (progress:<#.#>) (color:<color>) (style:<style>) (options:<option>|...) (uuid:<uuid>) |
| Short Description | Shows players a boss bar. |
| Full Description | Displays a boss bar at the top of the screen of the specified player(s).
You can also update the values and remove the bar. You can CREATE a new bossbar, UPDATE an existing one, or REMOVE an existing one. The default 'auto' will either 'create' or 'update' depending on whether it already exists. Requires an ID. Optionally, specify a list of players to show the bar to. If unspecified when creating a bar, it is shown to every player on the server, including any player that joins while it is still around. Viewers keep the bar across a relog: a player that is shown a bar and then disconnects is shown it again when they rejoin, for as long as the bar is around. Note that using 'remove' with a 'players' list on a server-wide bar narrows the bar down to the players that can see it at that moment, so it stops following new joins. Progress must be between 0 and 1. Valid colors: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW. Valid styles: SEGMENTED_10, SEGMENTED_12, SEGMENTED_20, SEGMENTED_6, SOLID. Valid options: CREATE_FOG, DARKEN_SKY, PLAY_BOSS_MUSIC. The UUID can optionally be specified, and will be sent to the client. Be careful to not overlap multiple bars with the same UUID. If not specified, it will be random. |
| Related Tags | <server.current_bossbars> Returns a list of all currently active boss bar IDs from bossbar.
<server.bossbar_viewers[<bossbar_id>]> Returns a list of players that should be able to see the given bossbar ID from bossbar.
<PlayerTag.bossbar_ids> Returns a list of all bossbars from bossbar that this player can see. (...)
<entry[saveName].bar_uuid> returns the bossbar's UUID.
|
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | server |
| Source | https://github.com/MINEZ/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/server/BossBarCommand.java#L39 |