PocketEssential / BossBarAPI

API to send BossBar Titles / Messages - PocketMine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

API to send BossBar Titles / Messages - PocketMine

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%