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 184 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.

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 all online players.
- bossbar MyMessageID players:<server.online_players> "title:HI GUYS" 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/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/server/BossBarCommand.java#L34