Just play music in your server~
Switch branches/tags
Clone or download
AvgZing Once again, use sense. Read the description.
Here's a list of reasons why you don't want to include 4.0.0 nor the Alphas:
- This plugin is designed to work in current versions of Minecraft, which are *after* the Alphas. Therefore running the plugin in any alpha builds will cause errors
- Dylan clearly announced that he does not want API 4.0.0 to be used in plugins both on twitter and in here pmmp/PocketMine-MP@62cb796
- SOF3 *also* clearly announced that he doesn't want API 4.0.0 to be used in plugins via twitter
- Poggit will not accept the plugin if it includes 4.0.0 https://twitter.com/poggitci/status/1019444525121458176

Of course, there's the common sense that I included in my last commit as well:
"Additionally, API 4.0.0 is nonexistent at the moment and we do not know what changes may occur between now and then, therefore it is nonsensical to include an API that may break the plugin."
Latest commit 9f12cae Aug 28, 2018

README.md

ZMusicBox

Play music in your server using noteblocks!

Requirements

  • 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

How to use

  1. Place the phar in your plugins folder of the server
  2. Run the server
  3. Stop the server
  4. Place .nbs files in the /plugins/songs directory of the server
  5. Run the server
  6. Place a noteblock

Commands

  • /music <start|stop|next>

API

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"));

Other Information

  • 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