Play music in your PocketMine-MP server using noteblocks!
This plugin is forked from SirGamer/ZMusicBox.
This repository has been moved to EnderLands/ZMusicBox.
- The server software that you use must have working Noteblock functionality
- Noteblocks must be placed in the server
- Songs must be in .nbs format in order to be played
- Place the
.phar
file in your plugins folder of the server - Run the server
- Stop the server
- Place .nbs files in the /plugins/songs directory of the server
- Run the server
- Place a noteblock
/music <start|stop|next>
ZMusicBox is also accessible from its API:
- Switch to the Next Song
$this->getServer()->getPluginBase()->getPlugin("ZMusicBox")->StartNewTask();
- Stop the music
$this->getServer()->getPluginBase()->getPlugin("ZMusicBox")->getScheduler()->cancelAllTasks($this->getServer()->getPluginBase()->getPlugin("ZMusicBox"));
- Use Minecraft Note Block Studio to convert midi files into nbs files. Website: http://www.stuffbydavid.com/mcnbs
- Please do not use this code nor these algorithms for other plugins