pmmp 4.0 virion
BossBarAPI::getInstance()->sendBossBar(Player $player, string $title, int $channel, float $percent, int $color);
//$channel is 0~
color list
BossBarAPI::COLOR_PINK
BossBarAPI::COLOR_BLUE
BossBarAPI::COLOR_RED
BossBarAPI::COLOR_GREEN
BossBarAPI::COLOR_YELLOW
BossBarAPI::COLOR_PURPLE
BossBarAPI::COLOR_WHITE
you have to send BossBar already.
BossBarAPI::getInstance()->setTitle(Player $player, string $title, int $channel);
you have to send BossBar already.
BossBarAPI::getInstance()->setPercent(Player $player, float $percent, int $channel);
you have to send BossBar already.
BossBarAPI::getInstance()->hideBossBar(Player $player, int $channel = 0);
If you want to automatically delete player channel information when player left
BossBarHandler::autoDeleteData(Plugin $plugin);
Please be careful issue
If the world is unloaded, please delete the player channel information and send bossbar again
BossBarAPI::getInstance()->deleteData(Player $player);
BossBarAPI::getInstance()->sendBossBar(...)