Hi, i saw on one server song automatically played by note blocks and i thought about the same thing on my server. Somewhere i found plugin, but it only plays one sound and gives error in console like this: [Server thread/CRITICAL]: Could not execute task ZMusicBox\MusicPlayer: Class pocketmine\network\protocol\LevelSoundEventPacket not found [22:22:12] [Server thread/CRITICAL]: ClassNotFoundException: "Class pocketmine\network\protocol\LevelSoundEventPacket not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
This is because of the mcpe protocol path changes. All that should need changed is the path for use statements that use mcpe protocol classes. The new path is: pocketmine\network\mcpe\protocol\LevelSoundEventPacket.
API 2.0.0 Still the same error : Code: Server thread/CRITICAL]: Could not execute task ZMusicBox\MusicPlayer: Class pocketmine\network\mcpe\protocol\LevelSoundEventPacket not found [14:06:47] [Server thread/CRITICAL]: ClassNotFoundException: "Class pocketmine\network\mcpe\protocol\LevelSoundEventPacket not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
Code: name: ZMusicBox version: 2.5.0 api: [1.0.0] author: Zzm description: Music~~ main: ZMusicBox\ZMusicBox commands: music: permission: ZMusicBox.music description: ZMusicBox's main command usage: /music <Next> permissions: ZMusicBox: default: op description: ZMusicBox Commands children: ZMusicBox.music: default: op description: ZMusicBox Commands
You can't get both issues unless you are using a version of PocketMine from before this commit. Please update if you can.
The LevelSoundEvetPacket was added in API 3, so it cannot be used in API 2 or lower https://github.com/pmmp/PocketMine-...74e1#diff-ed48b96df47fd36ffcb9c90b4186bfe4R26
So i have to change my pocketmine-mp on the newest...? Sorry but i have no any idea about this stuff...
Why don't you update to the latest version? There have been many features added since 0.15 Also, is your PocketMine API 2.0.0 or 2.1.0 ?