Created
September 11, 2019 13:36
-
-
Save gollilla/4d8ab841d70c08f0fe56005471c1fcf1 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
$player = $ev->getPlayer(); | |
$pk = new \pocketmine\network\mcpe\protocol\PlaySoundPacket(); | |
$pk->soundName = "music.mymusic"; // mymusic.ogg の場合 | |
$pk->x = $player->x; | |
$pk->y = $player->y; | |
$pk->z = $player->z; | |
$pk->volume = 0.5; | |
$pk->pitch = 1.0; | |
$player->dataPacket($pk); | |
$player->sendMessage("Send"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment