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
i don't know if it´s only me, but the dropbox link to download the music pack is broken, it shows me the error 404. If it is broken can you fix it please?
In reply to Velvetonico: ur not the only one
Hi everybody,
After long time of setting the plugin finaly works ! Now I can see that the radius for the jukebox doesn't work, anybody can help me ?
[20:01:06 WARN]: at me.zombie_striker.pluginconstructor.PluginConstructorAPI.registerGlowEnchantment(PluginConstructorAPI.java:143)
[20:01:06 WARN]: at me.zombie_striker.music.Main.onEnable(Main.java:311)
[20:01:06 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[20:01:06 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[20:01:06 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403)
[20:01:06 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381)
[20:01:06 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330)
[20:01:06 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422)
[20:01:06 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383)
[20:01:06 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338)
[20:01:06 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
[20:01:06 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545)
[20:01:06 WARN]: at java.lang.Thread.run(Unknown Source)
In reply to Forge_User_34403085:
xD, a enchantment is wrong i guess. thats what the erros says
Hello guy,
First the plugin is awesome. BUT : 1. Pls add the fonctionnality to choose a station wich will play just one time and not in loop.
Second, please upgrade in 1.15.2 !
Sorry for my english ;)
Cool plugin! you can make a uptade for 1.15.2?
@Zombie_Striker_bukkit
Can this work with WorldGuard regions?
Hi, I saw that you warned me about if the .ogg file is large, the song will have lag. When you mean by having lag, do you mean by kind of glitch and have like wavy sounds? Because that is what I heard. If so, is there possibly a fix to this besides lowering the file size.
I keep trying to convert audio to .ogg to make a resource pack but every file i make just won't work, i'm starting to think that i will never be able to add any custom music out of the one present inside the plugin. Can anyone help me? I would be happy with some epic music ready to add, maybe a good soul could help me sharing a resource pack, or some Two steps from hell ogg. files. :P
In reply to Forge_User_34403085:
These files should still work with the newest version:
Resourcepack (as an example how to build a resourcepack)
https://dev.bukkit.org/projects/music/files/946105
And a resource pack and the corresponding Music files for registering the sounds:
https://dev.bukkit.org/projects/music/files/880499
https://dev.bukkit.org/projects/music/files/880497
In reply to Zombie_Striker_bukkit:
Thanks, i've solved the problem, but now i have another one, i'm getting this error when loading my server
[12:19:41 INFO]: [Music] Enabling Music v2.7.34
[12:19:42 WARN]: java.lang.NoSuchMethodError: org.bukkit.enchantments.Enchantment.getByKey(Lorg/bukkit/NamespacedKey;)Lorg/bukkit/enchantments/Enchantment;
[12:19:42 WARN]: at me.zombie_striker.pluginconstructor.PluginConstructorAPI.registerGlowEnchantment(PluginConstructorAPI.java:143)
[12:19:42 WARN]: at me.zombie_striker.music.Main.onEnable(Main.java:311)
[12:19:42 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[12:19:42 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[12:19:42 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403)
[12:19:42 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381)
[12:19:42 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330)
[12:19:42 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422)
[12:19:42 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383)
[12:19:42 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338)
[12:19:42 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
[12:19:42 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545)
[12:19:42 WARN]: at java.lang.Thread.run(Unknown Source)
Any suggestion? Thanks.
how do i do the permission thing
I love music
i need some help please so i have the plugin installed but when i use playonce command the command works but no sound is playing if anyone knows a fix could you let me know i'm getting no sound at all from this plugin
I get this error when the server starts. The plugin gets disabled
[23:44:54 ERROR]: Error occurred while enabling Music v2.7.34 (Is it up to date?)
java.lang.ArrayIndexOutOfBoundsException: 1
at me.zombie_striker.music.Main.updateSongs(Main.java:446) ~[?:?]
at me.zombie_striker.music.Main.onEnable(Main.java:203) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.14.4.jar:git-Paper-209]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.14.4.jar:git-Paper-209]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.14.4.jar:git-Paper-209]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) ~[patched_1.14.4.jar:git-Paper-209]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) ~[patched_1.14.4.jar:git-Paper-209]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:474) ~[patched_1.14.4.jar:git-Paper-209]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:290) ~[patched_1.14.4.jar:git-Paper-209]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:876) ~[patched_1.14.4.jar:git-Paper-209]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
I found this link that explains how to fix it, it may be an easy fix but my brain is too small to understand java https://javarevisited.blogspot.com/2016/02/solving-javalangarrayindexoutofboundsexception-0-1-2-in-java.html
Im using this for my server, however, when doing /music playonce Congratulations (or any of the songs, it doesn't work
Link Removed: http://www.mediafire.com/file/qoiq5pxttv9dinx/MusicPack2.0.zip/file
Resource pack
Link Removed: http://www.mediafire.com/file/qoiq5pxttv9dinx/MusicPack2.0.zip/file
Config (zipped)
Error message is (in client)
"An internal error occured while attempting to preform this command"
Error message (in console)
[11:12:33] [Server thread/INFO]: SkeppysFlipFlops issued server command: /music playonce BitchLasagna
[11:12:33] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'music' in plugin Music v2.7.34
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[Server.jar:git-Bukkit-5d335e9]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) ~[Server.jar:git-Bukkit-5d335e9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:689) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1590) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1444) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:37) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:9) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:867) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:860) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:844) [Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:784) [Server.jar:git-Bukkit-5d335e9]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
Caused by: net.minecraft.server.v1_14_R1.ResourceKeyInvalidException: Non [a-z0-9/._-] character in path of location: minecraft:BitchLasagna
at net.minecraft.server.v1_14_R1.MinecraftKey.<init>(SourceFile:38) ~[Server.jar:git-Bukkit-5d335e9]
at net.minecraft.server.v1_14_R1.MinecraftKey.<init>(SourceFile:43) ~[Server.jar:git-Bukkit-5d335e9]
at org.bukkit.craftbukkit.v1_14_R1.entity.CraftPlayer.playSound(CraftPlayer.java:459) ~[Server.jar:git-Bukkit-5d335e9]
at org.bukkit.craftbukkit.v1_14_R1.entity.CraftPlayer.playSound(CraftPlayer.java:444) ~[Server.jar:git-Bukkit-5d335e9]
at me.zombie_striker.music.MusicCommand.onCommand(MusicCommand.java:672) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[Server.jar:git-Bukkit-5d335e9]
... 17 more
>
In reply to Kappa1018:
Hi, I'm also getting the same problem. Have you fixed it?
In reply to PulseBeat_02:
Caused by: net.minecraft.server.v1_14_R1.ResourceKeyInvalidException: Non [a-z0-9/._-] character in path of location: minecraft:BitchLasagna
Sadly, sound names cannot contain upper case letters. Change it to "bitchlasagna" and it should work.
Hey the music in a station starts the song even when its already playing.
(Version 1.14)