Play music in your server using noteblocks!
- The server software that you use must have working noteblock functionality (All current php server softwares)
- Noteblocks must be placed in the server
- Songs must be in .nbs format in order to be played
- Place the phar 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->ZMusicBox->StartNewTask();
- Stop the music
$this->getServer()->ZMusicBox->getScheduler()->cancelTasks($this);
- 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