Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enderlands/zmusicbox
Play music on your PocketMine-MP server
https://github.com/enderlands/zmusicbox
pmmp pocketmine pocketmine-mp pocketmine-mp-plugin pocketmine-mp-plugins pocketmine-plugin pocketmine-plugins
Last synced: 3 months ago
JSON representation
Play music on your PocketMine-MP server
- Host: GitHub
- URL: https://github.com/enderlands/zmusicbox
- Owner: EnderLands
- License: mit
- Archived: true
- Created: 2021-03-11T02:49:44.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-19T20:29:46.000Z (almost 3 years ago)
- Last Synced: 2024-09-26T10:20:32.417Z (3 months ago)
- Topics: pmmp, pocketmine, pocketmine-mp, pocketmine-mp-plugin, pocketmine-mp-plugins, pocketmine-plugin, pocketmine-plugins
- Language: PHP
- Homepage:
- Size: 365 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ZMusicBox
Play music in your PocketMine-MP server using noteblocks!This plugin is forked from **[SirGamer/ZMusicBox](https://github.com/SirGamer/ZMusicBox)**.
## Requirements
- 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## Usage
1) Place the `.phar` file 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 `
## API
ZMusicBox is also accessible from its API:
- Get Instance (both of the following would work)
```php
$instance = ZMusicBox\ZMusicBox::getInstance();$instance = $this->getServer()->getPluginBase()->getPlugin("ZMusicBox");
```
- Switch to the Next Song
```php
$instance->startTask();
```
- Stop the music
```php
$instance->getScheduler()->cancelAllTasks();
```
- Select songs
```php
$instance->selectSong("Exmaple song");
```## Other Information
- Use Minecraft Note Block Studio to convert `.midi` files into `.nbs` files.
Website: https://opennbs.org/