Skip to content

Mrkl21full/BossBarAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BossBarAPI

Example

BossBarAPI - Example

Developers

Simply add BossBarAPI.jar to your project build path.

Examples

BossBarAPI.createBar(String message)

Set a message for all players. It will remain there until the player logs off or another plugin overrides it.

BossBarAPI.createBar(Player player, String message)

Set a message for the player. It will remain there until the player logs off or another plugin overrides it.

BossBarAPI.createBar(Player player, String message, float percent)

Same as above except you can set the % of the BossBar. 100 shows the entire health bar, 50 shows half the health bar and etc.

BossBarAPI.setMessage(final Player player, String message, int seconds)

Sets a timed message for the player. It will remain until the timer runs out (or player logs off or another plugin overrides it). The health automatically reduces based on how long the timer is.

BossBarAPI.hasBar(Player player)

Pretty self explained, returns a boolean.

BossBarAPI.setMessage(Player player, String message)

Set a message for the player. Message length must be higher then 0. Return when player has no bar.

BossBarAPI.getMessage(Player player)

Return message or null when player has no bar.

BossBarAPI.setProgress(Player player, float progress)

Set % of player BossBar. Return when player has no bar or progress number is higher then 100 or lower then 1.

BossBarAPI.getProgress(Player player)

Return % or 0 when player has no bar.

BossBarAPI.setColor(Player player, Color color)

Set a color of the BossBar for player. Return when player has no bar.

BossBarAPI.getColor(Player player)

Return color or null when player has no bar.

BossBarAPI.setStyle(Player player, Style style)

Set a style of the BossBar for player. Return when player has no bar.

BossBarAPI.getStyle(Player player)

Return style or null when player has no bar.

BossBarAPI.addFlag(Player player, Flag flag)

Add flag to the BossBar for player. Return when player has no bar.

BossBarAPI.removeFlag(Player player, Flag flag)

Remove flag from the BossBar. Return when player has no bar.

BossBarAPI.hasFlag(Player player, Flag flag)

Pretty self explained. Return boolean (when player has no flag return false).

BossBarAPI.removeBar(Player player)

Also pretty self explained.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages