Music
Music
What is Music
Music was created to allow players to easily play custom loops on servers. The reason this plugin was created was to have the ability to play music or loops without replacing any existing base Minecraft sounds. The way this plugin works allows for players to create a loop (a sound the repeats after a certain amount of time) in specific areas of the world. This plugin naturally can support up to 220 loops being played at once, but this can be configured to be hundreds of thousands if needed. When setting up a song, you would use the command /Music play [SongName] [ID], where [SongName] is the name of the sound, and [ID] is the ID of the station you want to handle the song.
Features
- Adds the ability to play songs in MineCraft using resource packs
- Can have multiple Resource packs/ Music files on per server.
- Links to download Resource packs are configurable
- Time each song will be replayed are Configurable
- Each player has control over their Track, no one can stop or change another person's song unless they are OP
- Works on all versions of Bukkit
To learn how to add new songs, look at the READ ME.txt that gets generated in the Server/plugins/Music folder after you start the server with the plugin loaded at least once.
Commands
/Music | Controls all Music Commands | ||
/Music setUpStation [Songname using tab] [ID] | Plays [Songname] on Station [ID] | ||
/Music addToQueue [Songname] [ID] | adds Song [Songname] to a queue | ||
/Music removeFromQueue [queue] [ID] | Removes song at index [queue] from queue | ||
/Music clearQueue [ID] | clears station's queue. | ||
/Music Help | Lists all commands | ||
/Music ListStations [Page] | Lists all stations active, the song, who owns it (if anyone does) | ||
/Music PlayOnce [Songname using tab] | Plays the song once. It is the same as vanilla Minecraft's /playSound [Sound] |
Permissions:
- music.* --- Give access to all permissions
- music.admin -- Currently, the same as 'music.*'.
- music.changevolumetoglobal -- Allows users to change the volume of the jukebox to "global"
- music.default -- Allows users to place jukeboxes, change the station, and the volume
- music.usejukebox -- Allows users to interact with jukeboxes for Music
- music.placejukebox -- Allows players to place jukeboxes.
- music.changesong -- Allows players to be able to change the station used for jukeboxes
- music.changevolume -- Allows players to change the volume of the jukebox
Resourcepacks for Clients and Sound adder for Server
Resourcepacks:
RandomBits1 : Comes With Download
List of Plugins/resourcepacks that use Music
- EventSounds :Play custom sounds on an event.
Dependencies and Compatibility
There are no dependencies. Compatibility issues may occur if the Client(player online) has conflicting names on their resourcepack. (e.g. A song on the server called "Crash" may conflict if player has resourcepack that has a different sound named "Crash") Songs are case sensitive, so if a song on the server does not have the same name, but with different capital letters (E.G. 'Piano' and 'PianO' ), the players may not hear the music.
Adding new sounds
If you wish to add new sounds to your game, read this tutorial:
https://www.spigotmc.org/wiki/how-to-create-new-songs-for-music/
Developer Information
If you want to learn how to create your own resourcepacks, look at the READ ME.txt
Music is now an API, so your plugins can now play custom music. Music.playSound(String songname, int StreamID, Location location, String owner) The songname is the name of the song (CaSe Sensitive) StreamID is the ID of the steam that this loop will play on, location is the location that the loop will be played at, and owner is the owner of the stream (can not be null, you should use the name of your plugin if you don't want a specific player editing anything)
Music.playSoundOnce(String songname, Location location) songname is the name of the song (CaSe Sensitive) location is the location the sound will be played
Music.removeSound(int StreamID) StreamID is the ID of the stream the sound is playing on.
This plugin does update automatically:
This plugin checks for updates and will download updates. If you do not want this plugin to automatically update, all you need to do is edit one line in the "plugins\AUpdater\global.yml" file. Just change the one variable in there to false (or, if you run into any problems, copy the code below)
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
How to Install
- Drop the Music.Jar and Music file into your plugins folder
- Restart your server
@ZombieStryker
No not resource pack, just music file itself.
For example, i could add musics in musics.yml as following:
So player could load specific music file when needed, not a huge resource pack file including all sounds, which is hard to update when new sounds added as well.
@phoenixlzx
What do you mean? All links should work. If you have a direct access to the file (site.com/resourcepack.zip) and links to sites where you download the resourcepack from a page (site.com and then click the download button) should all work.
As for cdn, as long as you can get to the location of the file, it should work.
@xDizasterCYx
If you're referring to the ability to have multiple people here the sound loop, that is already implemented. It's naturally set so that all players online can hear the music if they're in the specific area.
Could you add support for external site file links?
so music files can be loaded from cdn when necessary.
Thanks.
Any way you can add a command so the song will be played public?
@Peda1996
1) I have added a new ReadMe.txt which will show you how to add new sounds/loops to your server. I hope this will help you understand what you would need to do to create your own sounds.
2) I don't know how what you tried, nor did you say what you did so I cannot help you. If you could list what you tried and why you tried it I can help you and hopefully make sure anything that confused you will make more sense.
Is it possible to make a understandable tutorial?
However, all things i tried it wont work..
@BigBadBob12
Yes, you can set the loops to play at a specific area.
Looks great, can I restrict playlists to certain regions of the world?
@adamk523
1) I already have a resourcepack, Music Resourcepack-Randombits1 for the resourcepack and Music Serverpatch - Randombits 1which contains all the .txt files for adding the loops to your server.
2) The files do not deal with Json, but instead work like the following
-The File Name is the name of the sound to loop (such as 'hiss.txt' for sound hiss.ogg or 'level_up.txt' for the sound level_up.ogg) -The first line of the text file being how long you want the delay to be before playing it again. The time is stored in quarter seconds ( so a song that is 20.5 seconds long would be 20*4 (the quarter seconds) +2 (the .5 seconds). Note: The text files does not do math, you would need to input the amount yourself, which in this case would be 82)
I built the plugin in this was so that even lazy people or people who want to add hundreds of loops can do so in the fastest amount of time possible.
I would love to use this plugin for an upcoming Minecraft rave party, but despite not being a lazy person and having the ability to figure most server stuff out, I really just can't get the JSON formatted properly or working with the custom songs. :( Can you throw together a quick resource pack with a few public domain songs so I have an example to work off of? Thanks!
@TNGfire
I tried, the problem is that I need to find songs that are in the public domain. If you have any ideas, let me know.
Good plugin! You should add a random song list.
Look VERY cool, only problem (for me) is that in text it is kinda hard to understand, but I will try and make this work! also a suggestion is try and make a tutorial on a video to make it easier for people who learn through demestration, Thanks!
@wele9477
No, but you can easily convert this to 1.5.2. Here are the steps:
1)) Find an old texturepack that works with 1.5.2
2) Take the sound files (something like Door.ogg or BlazeShoot.ogg), and replace them with the sounds you want (Since this is 1.5.2 instead of 1.8+, you have to replace sounds that exist. Only in 1.8+ can you add new sound without replacing anything)
3) Add the sounds to the server (Look under Developer's information)
If anyone wants to do this, they can, but I will not work on making texturepacks for any updates before 1.7. Here are two reasons why:
A) This plugin was created so that you would not have to replace sound files. Since the ability to add sounds to minecraft was only added in 1.7, patches for updates before that would have to replace sound files.
B) Not many people still use anything before 1.7, and I'm even surprised that any does. I know that only a handful of people will download the texturepack, and I will not use it, so I feel that there is no need to me to create it. I would be happy to post texturepacks for this plugin if anyone were to create them.
Might I just ask, Why would you need it for 1.5.2?
is it available for ver. 1.5.2 ?
@Causalities
Tested in 1.8.6, Music.jar 2.4.4 works fine.
@Causalities
That is because you're using the 1.7 version of my plugin (2.4.4 *1.7*), Try using the 2.4.4 version which is for 1.8. I have not tested it in 1.8.6 yet, so if it works for you can you let me know? And if it does not work, can you post any error messages, the command you used, your config file, ect.
I tried this plugin v2.4.4_1.7 with Spigot 1.8.6 and it does not work.
@retrodaredevil
Two things;
1) if you don't know how to put the .ogg files resource packs, then you have not looked at Developers Information section, which has the tutorial that shows how to do it and tells you everything you need to know about creating new music
2) I cannot PM you with the link currently (still setting it all up, again ;p) I have released a new resource pack on the Bukkit forums to show you how this is done. Once version 1.4.4 is available, download it and then you can get the resource pack by using /loop get . You should be able to download it in 1-2 hours once it's been approved.