Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 179 commands...
NameBossBar
Syntaxbossbar ({auto}/create/update/remove) [<id>] (players:<player>|...) (title:<title>) (progress:<#.#>) (color:<color>) (style:<style>) (options:<option>|...) (uuid:<uuid>)
Short DescriptionShows players a boss bar.
Full DescriptionDisplays 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 Command:bossbar.
<server.bossbar_viewers[<bossbar_id>]> Returns a list of players that should be able to see the given bossbar ID from Command:bossbar.
<PlayerTag.bossbar_ids> Returns a list of all bossbars from Command:bossbar that this player can see. (...)
<entry[saveName].bar_uuid> returns the bossbar's UUID.
Usage Example
# Shows a message to every player on the server, including those that join later.
- bossbar MyMessageID "title:HI GUYS" color:red
Usage Example
# Shows a message to the linked player alone.
- bossbar MyMessageID players:<player> "title:HI" color:red
Usage Example
# Update the boss bar's color and progress.
- bossbar update MyMessageID color:blue progress:0.2
Usage Example
# Add more players to the boss bar.
- bossbar update MyMessageID players:<server.flag[new_players]>
Usage Example
# Remove a player from the boss bar.
- bossbar remove MyMessageID players:<[player]>
Usage Example
# Delete the boss bar.
- bossbar remove MyMessageID
Groupserver
Sourcehttps://github.com/MINEZ/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/server/BossBarCommand.java#L39