Last active
April 8, 2020 11:11
-
-
Save gollilla/69f1a71770cd69d9ad42bbffa646c99f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use pocketmine\event\player\PlayerJoinEvent; | |
use bossbarapi\bossbar\BossBar; | |
class api_usage { | |
function onJoin(PlayerJoinEvent $ev){ | |
$player = $ev->getPlayer(); | |
$bossBar = BossBar::create($player); | |
$bossBar->setTitle("Sample"); | |
$bossBar->setPercentage(0.2); | |
$bossBar->show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment