Inactive [FUN] BCMusic v3.2- Custom Music w/ Spout [1000]

Discussion in 'Inactive/Unsupported Plugins' started by IC3D, Jun 28, 2011.

  1. Offline

    IC3D

    BCMusic: A custom music plugin w/ BukkitContrib Spout
    Version: 3.2
    This is a super simple plugin. It is an easy to configure music plugin that takes advantage of BukkitContrib to play music, either only hearable by the player or globally playing the music. This one is all in the configuration, so click that spoiler down there :)

    Requirements:
    Features:
    • Play custom music!
    • Play custom music through jukeboxes (volume varies by distance just like regular ones)!
    • Permissions support!
    Configuration:
    config (open)

    The default configuration looks like this:
    Code:
    Music:
        tothaface:
            Node: BCM.tothaface
            GlobalNode: BCM.Global.tothaface
            URL: http://url here
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://url here
    
    To add a song, add a name you want (in lowercase) like tothaface. Then add the node, global node, and song url (it must be on the internet, and .ogg, .wav, or .mid). The commands do the rest.

    Commands:
    commands (open)

    There is only one command, but the arguments decide what music to play. The syntax looks like this:
    /bcm <song> <global>
    Replace song with a name of a song that you set in the config, for example, tothaface. You can just type /bcm tothaface to hear the song yourself. Or, if you have the global node, you can type /bcm tothaface global, which will play the song for all players on the server with Spout installed

    JukeBoxes:
    jukeboxes (open)

    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://url here
    After you put an actual music file URL in the config, you can use it like a regular jukebox. Just place a jukebox, and right click it with the item defined in the config (default iron_ingot). The song will play like a regular jukebox song, and volume will vary by distance. When you left click the jukebox your item is returned.

    Downloads:
    The source code is included in the .jar

    Changelog:
    Version 3.2
    • Added /bcm list to show all available songs.
    Version 3.1
    • Changed "You don't have BukkitContrib installed" to Spout. (I forgot)
    Version 3.0
    • Updated to Spout, left the name the same for simplicity's sake
    Version 2.0
    • Added jukeboxes
    Version 1.0
    • Official Release
    Credits:
     
  2. Offline

    quickclay

    The internets? :rolleyes:

    I get the following error with any use of BCM. (included bukkitcontrib authentication for reference)
    Show Spoiler

    2011-07-17 08:51:05 [INFO] [BukkitContrib] Successfully authenticated quickclay's BukkitContrib client. Running client version: 15
    2011-07-17 08:51:08 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at com.nijiko.permissions.Entry.has(Entry.java:219)
    at com.nijiko.permissions.Entry.hasPermission(Entry.java:195)
    at com.nijiko.permissions.ModularControl.permission(ModularControl.java:269)
    at com.nijiko.permissions.ModularControl.permission(ModularControl.java:256)
    at com.nijiko.permissions.ModularControl.has(ModularControl.java:249)
    at me.ic3d.bcm.BCM.hasPerm(BCM.java:41)
    at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:35)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    Here's my config (assuming correct spacing)
    Music:
    gone:
    Node: BCM.gone
    GlobalNode: BCM.Global.gone
    URL: http://dl.dropbox.com/u/34963077/Want You Gone.ogg
    Note: Jukebox works fine. CB 953, BC 1.5

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  3. Offline

    flubbychannel

  4. Offline

    Greenborg

    Why do the music stop when it is not finished?
    Maby add mp3 support?
    But woks perfect except for the brutal stopping in music number
     
  5. Offline

    CeramicTitan

    any links?
     
  6. Offline

    odielag

    jukeboxes work great! I'm wondering if songs repeat... I'd like to add some ambiance to certain areas!
     
  7. Offline

    sole10

    Works but not great because it just stops in the midlle or song Champagne showers is to long? Maybe 50 MB is too much? Just tell me the best way for it to listen to the music :)
     
  8. Offline

    djrazr

    Does the configuration refresh automatically? how about a /mrefresh to reload the config?
     
  9. Offline

    Nanite_bot2559

    Problem; I can't get the jukebox to shut up. Config problem on my end, or should i just reinstall it? I punch the jukebox and it regives me the iron (or watever i used), but it doesn't stop playing music.

    yep 50 mb may be too long for the client to play. just imagine, 50 mb+ of music streaming to all players all over the place:p that's why

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  10. Offline

    Scream Aim Fire

    17:08:17 [SEVERE] Could not pass event PLAYER_INTERACT to BCMusic
    java.lang.UnsupportedOperationException: All audio files must be ogg vorbis, wav
    , or midi type
    at org.bukkitcontrib.sound.SimpleSoundManager.playCustomFile(SimpleSound
    Manager.java:322)
    at org.bukkitcontrib.sound.SimpleSoundManager.playCustomSoundEffect(Simp
    leSoundManager.java:298)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffec
    t(SimpleSoundManager.java:277)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffec
    t(SimpleSoundManager.java:271)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffec
    t(SimpleSoundManager.java:266)
    at me.ic3d.bcm.BCMPL.onPlayerInteract(BCMPL.java:54)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    17:08:47 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?

    I do have them .ogg, but when i try a different
    song than the one playing, it does ^that^. If i try the same song, it keeps the song
    going, and starts another at a different time.
     
  11. Offline

    sole10

    yeh when in my server there are only 3-4 rarely 5 players
     
  12. Offline

    Greenborg

    Can't you make the config file so you can stream more than 50 mb and by default it can not?
     
  13. Offline

    sfxworks

    This is a great plugin.

    Any way I can have the jukeboxes aut0-play on redstone hit? Also, be able to configure their range?
     
  14. Offline

    Ethneldryt

    Play custom music through jukeboxes (volume varies by distance just like regular ones)! not work in 1000
     
  15. Offline

    DerKB

    Not sure if it has been asked, did not find it in a short readthrough here.

    But how about a jukebox set to a song (maybe by command or sign next to it) that can be turned on by redstone?
    Would give me so nice features in some of my builds and the new planned ones.

    Would be real nice to have.

    Regards
    DerKB
     
  16. Offline

    sfxworks

    Update for build 1k?

    Hmm...
    The item is associated with a mp3.
    The item is already inside the Jukebox.
    Button triggers Jukebox.
    Only the person who triggered the Jukebox can hear the music.

    Is this possible?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  17. Offline

    Tagz

    The plugin seems to be installed properly, and when I tried to play it for the first time, it said downloading the song. But then it wouldn't play the song.
    I went into .mincraft and the file shows at:
    \.minecraft\bukkitcontrib\audiocache\BukkitContrib
    Is that correct? Not sure why it won't play. Cheers.

    Hmm figured it out, seems adding Zan's minimap stops music from working.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  18. Offline

    EMOberger

    could you make it loop?
     
  19. Offline

    jumika

    Jukeboxes volume not varies by distance for me.
    Using 1000.
     
  20. Offline

    Montpelier

    Is it a MIDI file? MIDI files don't fade for me, but oggs do. Default range is a little too short though.

    Unrelated issue: What is happening to the authors of BukkitContrib plugins! They seem to be disappearing from the internet after a couple of posts. Something sinister is going on.
     
  21. When trying to interact with a jukebox, the server returns this error:

    03:04:37 [SEVERE] Could not pass event PLAYER_INTERACT to BCMusic
    java.lang.UnsupportedOperationException: All audio files must be ogg vorbis, wav, or midi type
    at org.bukkitcontrib.sound.SimpleSoundManager.playCustomFile(SimpleSoundManager.java:322)
    at org.bukkitcontrib.sound.SimpleSoundManager.playCustomSoundEffect(SimpleSoundManager.java:298)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffect(SimpleSoundManager.java:277)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffect(SimpleSoundManager.java:271)
    at org.bukkitcontrib.sound.SimpleSoundManager.playGlobalCustomSoundEffect(SimpleSoundManager.java:266)
    at me.ic3d.bcm.BCMPL.onPlayerInteract(BCMPL.java:54)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  22. Offline

    PixelEather

    Help me pls
    I have the error: an internal error has occured to perform this command
    when i write /bcm tsfh global
    I have bukkit 1k
    This is my config file:
    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://URLHERE
    Music:
        tothaface:
            Node: BCM.nodehere
            GlobalNode: BCM.Global.nodehere
            URL: http://dl-web.dropbox.com/get/tsfh.ogg?w=6bb0e24f
    
    My plugins are:
    Afk Booter; BC Music; BukkitContrib;; ClasSign; dynmap; Essentials; FireLord; HeroicDeather; Ichat; Iconomy; Jobs; LevelCraft; LWC; Permissions; SignEdit; SignShop; SignShops (oO); Stargate; VoxelSniper; War; Whitelist; WorldEdit; WorldGuard
     
  23. Offline

    i ThRoW sToNeZx

  24. Offline

    Moe041991

    @IC3D
    Iam using CB1000.
    If i enter "/bcm "songname" it downloads the song. Whenever it tells me the download is finished, nothig happens. No Sound. If i enter the command again, still no sound. What am I doing wrong?

    Code:
    011-07-27 21:36:41 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.0
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    	at com.nijiko.permissions.Control.permission(Control.java:334)
    	at com.nijiko.permissions.Control.permission(Control.java:260)
    	at com.nijiko.permissions.Control.has(Control.java:253)
    	at me.ic3d.bcm.BCM.hasPerm(BCM.java:41)
    	at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:35)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    	... 12 more
    2011-07-27 21:36:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.0
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    	at com.nijiko.permissions.Control.permission(Control.java:334)
    	at com.nijiko.permissions.Control.permission(Control.java:260)
    	at com.nijiko.permissions.Control.has(Control.java:253)
    	at me.ic3d.bcm.BCM.hasPerm(BCM.java:41)
    	at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:35)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
     ... 12 more
     
  25. Offline

    mariomxpx

    what do you mean by node? [sorry, i'm brazilian so i have some issues at understanding things in english]

    i put this song to play http://dl.dropbox.com/u/36622652/bed intruder.ogg then appears "downloading bed intruder.ogg" them nothing happens, it download but dont play. i have anotehr music, and it plays, but sometimes it plays suddenly, very odd

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  26. Offline

    Sim121

    The plugin works globally well, but with some songs (not all of them), when I try to play them as "global"
    (/bcm NAME global), it says that I don't have permission to play this song...
    I'm an admin with all permissions ('*')...
     
  27. Offline

    Moe041991

    very similar to my problem.
     
  28. Offline

    Kailvin

    Code:
    17:21:24 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    Jukeboxs work great. But when i try to play any song manually. I get this ugly ugly output to my console and an internal error has occoured. CB 1K
     
  29. Offline

    FlawlezZ

    You should make Join Sounds and Death Sounds possible. Would be FUCKING awesome!
     
    maniacmusic likes this.
  30. Offline

    Hamad

    I think i know how to stop a song, we can just put another song in config which is ogg and blank, didnt tried yet

    please add configurable volume for global and jukebox, joining the server music and death just like Flawlezz request and something like region music, region u create with wooden axe and when someone enters, music starts (bukkitcontribessential has region music but hard to configure, we need wooden axe to create regions), please, anyway, very awesome plugin. thanks

    hey, my jukebox work but /bcm doesnt, any help?, i get an error, i dont have permissions btw
    EDIT: NVM, i got it work, i forgot to set my music name non caps

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  31. Offline

    Hempa

    so those who wants to hear the music needs a client mod?
     

Share This Page