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, I mean where do you put the songs IN the resource pack? Like assets minecraft sounds ? Also do you think u can send me a PM for the Dropbox. I'd like to look at the layout anyway.
@TanderMME
Yes, that is how it should look. Now all you need is the music that will be played, which you can make. I have the default music that would go for those songs, but i cant post it on this page.
@retrodaredevil
You would put the resource pack in the .minecraft/resourcepacks/ directory. This is how you would get any other resource pack.
Due to the fact that all that music is copyrighted (owned by daft punk), I can't post the resource pack on bukkit. So then I put the resource pack in my dropbox that you can access, but I can't give the link on this page due to the fact that it is a third party site. ;p
It say's you can play custom music that's in the resource pack but I'm a little confused WHERE I put it in the resource pack. Like the file directory. And where do you find the daft punk resource pack. Can you post a link?
Is the picture all is as it should be?
@TanderMME
And i'm still trying to figure out the importance of that picture. Why did you post that?
@TanderMME
I still do not understand what you're saying because you're not using any actual sentences, but by picking out some of the random words that you posted I think you are asking for a way to have music play at the beginning of a quest and at the end of the quest, which is what you asked in your first post, to which I responded that you can do this via scripting.
I will eventually release an API to this where you can easily do these things. Until then, use the following in your code (I'm assuming you're asking how to do this, since this was not meant for Citizens or Quests nor did it ever say anything about Quest)
Player player = Event#getPlayer();
String nameofthesong = "Name Of The Song You Want With Correct Capitalization";
getServer().dispatchCommand(player, "loop playonce "+nameofthesong);
http://imgur.com/MBmmiis
Requested from citizens plugin id of the npc requested the name of the quest in quests and right to edit the quest, then assigned to the music at the beginning of the quest, i.e. for example when we click on the NPC, then put other music on the end of the quest.
@TanderMME
What? I do not understand any of that? Can you try rewording that?
For compatibility with citizens and quests it is possible to take id npc from a plugin and to do so that when you begin a quest some music and when you finish a quest too played music played. such it is impossible to make?
@TanderMME
Just release version 1.4.3 (contains updates I had made before in 1.4.2 that I did not release+ the GUI)
@TanderMME
1) I can try to make a UI (this actually seems like a great idea)
2) That is exactly what the plugin does. The music will play in a specific spot over and over again in a loop.
3) I don't see how this is incompatible with Citizens and Quests?
4) Soon this will become an API, so that you can script this to play a song/ play loops however you like.
In the next update I will add this.
could you make the ability to create player your playlists using the GUI interface(despite the fact that the music they have is limited)? And by the way, is it possible to make the music played in a certain place. And you can add will work with citizens and quests? Ie if you clicked on the NPC, you music is playing..
@JFischer00
No, don't do that. You're just replacing existing sounds!
Watch the link I provided above. That's what you should do for the resource pack.
@ZombieStryker
Ok, so every tutorial I read/watched about making resource packs with custom music says to rename the files to the same names as the original files (e.g. "Song name here".ogg to cat.ogg). Am I supposed to do that for resource packs specifically made for this plugin and if so I am supposed to make the text file the name of the minecraft song I changed (e.g. cat.ogg and cat.txt) right?
@JFischer00
If you know how to make a custom resource pack, and how to activate it in minecraft (The resourcepacks tab), then you're done with actually creating the resourcepack (there are many tutorials on how to do this so I figured I didn't have to add it to the developer Infomration)
After that, you need to create a .txt file in the directory
(FILE THAT HAS craftbukkit.jar)/plugins/Music/Music/
That will be the name of the song you have in the resource pack (In the resource pack you may have an .ogg file called "Song1.ogg", so in the file above you would make "Song1.txt") , and in this .txt file, you would put, as the first line of text, the length of the song (e.g. Song1.ogg plays for 10.500 seconds, and 1second = 4, so you would put down 42 ( seconds it plays for (Times) 4 ) )
I originally had the link to my resource pack where you could see how this plugin worked, but due to the fact that some of the songs were "CopyRighted" and the link was "To a third party site", I had to remove it.
So I read up on creating resource packs with custom songs and I read the Developer Info section, and I have a few questions. Which folder do I put songs in for this plugin? Do I need to rename my songs in my resource pack to be the same as the default ones? Does this plugin request that players download the resource pack? This is a great plugin and I am definitely going to use it.
@gettomin
I was forced to remove the link to my resource pack which had all of my music due to the fact that it was A: it was a link to a third-party-site (Dropbox) B: Contains Copyrighted music (DerudeSandstorm and WhatIsLove). I cannot have the link to the dropbox in the download, nor in this plugin description.
At this point in time, since I can't post the links here, you will can make your own resourcepack containing the loops you want and add them to the server (The way how is listed under Developer Information)
If anything is unclear or you have any other questions, let me know.
So if I want own music, there should be 2 links in the ResourcePacks.txt file? The 1st link is removed, this is why it doesn't work?