Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.31 KB

README.md

File metadata and controls

50 lines (28 loc) · 1.31 KB

image API to send BossBar Titles / Messages

BossBarAPI

// First you"ll need this
use PocketEssential\BossBarAPI\BossBarAPI;

// You can also do:

$BossBarAPI = BossBarAPI::getInstance();

Sending BossBars to players

// Set the barMessage first!

$message = "This is a BossBar message";

$BossBarAPI->setBarMessage($message);

/*
 Player should an instance of a PLAYER, Just foreach loop all the online players; etc
 */

$BossBarAPI->sendBossBar($player);


  }

Example

Example

Info

    You can also try a simple plugin made by us
    Using our API, You can get (take a look at
    it over) [here](https://github.com/PocketEssential/BossBar)

Builds

Poggit-CI