Boss Bars of Player (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] boss[ ]bars of %players%

Description

Every boss bar currently being shown to a player. Adding a boss bar shows it, removing one hides it, and clearing hides all of them. Setting this hides every boss bar the player can currently see, including any another script showed them, before showing the given ones.

Examples

add {_bar} to boss bars of all players
remove {_bar} from player's boss bars

broadcast "%player% can see %size of boss bars of player% boss bars"

on quit:
	clear player's boss bars

View source