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

    Imm0rt41

    yea, i tried it right after i said that. it needs to be added to the command list on here though
     
  3. Offline

    captainawesome7

    Yeah I guess I forgot to add it. I'll fix that when I find the IC3D password :/
     
  4. Offline

    Imm0rt41

    also, is it possible to make this a global radio type thing? songs that constantly play either shuffled or sequential in the list without someone having to type a command to play each song globally.
     
  5. Offline

    captainawesome7

    spout has no way of knowing when the song ends, so it wouldn't know when to start the next one.
     
  6. Offline

    Imm0rt41

    the song files do have a time on them however, cant bcm read off that
     
  7. Offline

    Darkvoltage3

    how do you convert mp3 files to ogg., wav. etc?
     
  8. Offline

    captainawesome7

    audacity
     
  9. Offline

    LamaBrains

    Like it but it would be better if it was only trusted by the admin like we can just simple drag music into a file and have everyone else download it just like what your saying but easyer i dont get one bit of this at all

    Its the URL thing what i dont get its sooo annoying :eek: i even looked up videos.
     
  10. Offline

    Bseagull

    So... it needs spout? Dang it...
     
  11. Offline

    IOn Vash

    will this be updated any time soon?
     
  12. Offline

    captainawesome7

    should work fine.
     
  13. Offline

    Armaxxx

    HELP ME PLEASE!!!! :D:D:D
    Code:
    2011-12-17 23:04:37 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v3.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
        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:93)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NullPointerException
        at org.getspout.spout.sound.SimpleSoundManager.playCustomFile(SimpleSoundManager.java:221)
        at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSoundManager.java:174)
        at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(SimpleSoundManager.java:153)
        at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(SimpleSoundManager.java:147)
        at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(SimpleSoundManager.java:142)
        at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(SimpleSoundManager.java:137)
        at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:68)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 14 more
    here is my config file:
    Code:
    Music:
        tothaface:
            Node: BCM.likeb
            GlobalNode: BCM.Global.likeb
            URL: http://dl.dropbox.com/u/36063021/likeb.ogg
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://url here
    
    And my permissions file:
    Code:
    users:
        Armax:
            groups:
            - admin
        richardd12:
            groups:
            - user
        vico97:
            groups:
            - user
    groups:
        default:
            permissions:
                permissions.build: true
                lwc.protect: true
                superpermbridge.wolfpound.adopt: true
                mcmmo.ability.*: true
                mcmmo.item.*: true
                mcmmo.chat.*: true
                mcmmo.skills.*: true
                mcmmo.commands.ability: true
                mcmmo.commands.myspawn: true
                mcmmo.commands.setmyspawn: true
                mcmmo.commands.ptp: true
                mcmmo.commands.whois: true
                mcmmo.commands.party: true
                chaircraft.sit: true
                BCM.likeb: true
        admin:
            permissions:
                permissions.*: true
                worldedit.*: true
                superpermbridge.wolfpound.admin: true
                WirelessRedstone.*: true
                permissions.*: true
                OpenInv.exempt: true
                OpenInv.anychest: true
                mcmmo.*: true
            inheritance:
            - user
            - default
        user:
            permissions:
                permissions.build: true
                superpermbridge.wolfpound.create: true
                SimpleHelp.admin: true
                OpenInv.openinv: true
                OpenInv.search: true
                OpenInv.crossworld: true
                superpermbridge.mothernature.*: true
                logblock.*: true
                SimpleHelp.admin: true
                BCM.Global.likeb: true
            inheritance:
            - default
    messages:
        build: '&cno puedes construir aqui'
    
    
    ANY HELP IS APRECIATED :D
     
  14. Offline

    Imm0rt41

    By golly, i have errors!

    Code:
    18:40:09 [INFO] [CMDLOG] Imm0rt41: /bcm alwayshere global
    18:40:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bcm'
     in plugin BCMusic v3.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    5)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    78)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:757)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :180)
            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:93)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :550)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.UnsupportedOperationException: All audio files must be ogg
    vorbis, wav, or midi type
            at org.getspout.spout.sound.SimpleSoundManager.playCustomFile(SimpleSoun
    dManager.java:240)
            at org.getspout.spout.sound.SimpleSoundManager.playCustomMusic(SimpleSou
    ndManager.java:174)
            at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(Sim
    pleSoundManager.java:153)
            at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(Sim
    pleSoundManager.java:147)
            at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(Sim
    pleSoundManager.java:142)
            at org.getspout.spout.sound.SimpleSoundManager.playGlobalCustomMusic(Sim
    pleSoundManager.java:137)
            at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:68)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 14 more
     
  15. Offline

    Armaxxx

    UPDATE THIS AWESOME PLUGIN PLEASEEE!!! IT IS VERY USEFULL
     
  16. Offline

    captainawesome7

    ima say that its your song/config, but I can't be sure
     
  17. Offline

    Imm0rt41

    lemme get it:

    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://URLHERE
    Music:
        wolfandman:
            Node: BCM.wolfandman
            GlobalNode: BCM.Global.wolfandman
            URL: http://dl.dropbox.com/u/1870459/09%20Of%20Wolf%20and%20Man.ogg
        sandstorm:
            Node: BCM.sandstorm
            GlobalNode: BCM.Global.sandstorm
            URL: http://dl.dropbox.com/u/1870459/Sandstorm.ogg
        kryptonite:
            Node: BCM.kryptonite
            GlobalNode: BCM.Global.kryptonite
            URL: http://dl.dropbox.com/u/1870459/01%20Kryptonite.ogg
        lionman:
            Node: BCM.lionman
            GlobalNode: BCM.Global.lionman
            URL: http://dl.dropbox.com/u/1870459/Mumford%20and%20Sons%20-%20Little%20Lion%20Man.ogg
        basskicking:
            Node: BCM.basskicking
            GlobalNode: BCM.Global.basskicking
            URL: http://dl.dropbox.com/u/1870459/Bass%20Is%20Kicking.ogg
        elevation:
            Node: BCM.elevation
            GlobalNode: BCM.Global.elevation
            URL: http://dl.dropbox.com/u/1870459/Maximus%20Techno%20-%20Elevation.ogg
        faruniverse:
            Node: BCM.faruniverse
            GlobalNode: BCM.Global.faruniverse
            URL: http://dl.dropbox.com/u/1870459/DJ%20Contacreast%20-%20Far%20From%20Universe.ogg
        wonderwall:
            Node: BCM.wonderwall
            GlobalNode: BCM.Global.wonderwall
            URL: http://dl.dropbox.com/u/1870459/Wonderwall.ogg
        chasingcars:
            Node: BCM.chasingcars
            GlobalNode: BCM.Global.chasingcars
            URL: http://dl.dropbox.com/u/1870459/Chasing%20Cars.ogg
        alligatorsky:
            Node: BCM.alligatorsky
            GlobalNode: BCM.Global.alligatorsky
            URL: http://dl.dropbox.com/u/1870459/Alligator%20Sky.ogg
        ageagain:
            Node: BCM.ageagain
            GlobalNode: BCM.Global.ageagain
            URL: http://dl.dropbox.com/u/1870459/What%27s%20My%20Age%20Again.ogg
        onechance:
            Node: BCM.onechance
            GlobalNode: BCM.Global.onechance
            URL: http://dl.dropbox.com/u/1870459/One%20Chance.ogg
        calabria:
            Node: BCM.calabria
            GlobalNode: BCM.Global.calabria
            URL: http://dl.dropbox.com/u/1870459/Calabria%202007.ogg
        awakening:
            Node: BCM.awakening
            GlobalNode: BCM.Global.awakening
            URL: http://emitlinks.ath.cx/The_Inconnu_FR/mp3/SG%20-%20Awakening.mp3
        oxygen:
            Node: BCM.oxygen
            GlobalNode: BCM.Global.oxygen
            URL: http://emitlinks.ath.cx/The_Inconnu_FR/mp3/SG%20-%20Oxygen.mp3
        ravewithme:
            Node: BCM.ravewithme
            GlobalNode: BCM.Global.ravewithme
            URL: http://emitlinks.ath.cx/The_Inconnu_FR/mp3/SG%20-%20Come%20Rave%20With%20Me.mp3
        alwayshere:
            Node: BCM.alwayshere
            GlobalNode: BCM.Global.alwayshere
            URL: http://emitlinks.ath.cx/The_Inconnu_FR/mp3/SG%20-%20Always%20Here.mp3
        basshead:
            Node: BCM.basshead
            GlobalNode: BCM.Global.basshead
            URL: http://dl.dropbox.com/u/1870459/basshead.ogg
        tothaface:
            Node: BCM.nodehere
            GlobalNode: BCM.Global.nodehere
            URL: http://URLHERE
     
  18. Offline

    bytemunch

    Audio files must be ogg vorbis, midi or wav.
     
  19. Offline

    captainawesome7

    ^this. You can't use mp3
     
  20. Offline

    Armaxxx

    PLEASE UPDATE, mine is not working, it downloads the song but does not play it, i left a comment where all my info is, please help me
     
  21. Offline

    n3xt_x3

    hello, i says that an internal error occurred

    this is my config:

    Code:
    Music:
        Muse:
            Node: BCM.muse
            GlobalNode: BCM.Global.muse
            URL: http://dl.dropbox.com/u/54395691/Metric%20%20%20Sick%20Muse%20%28Imij%20Dubstep%20remix%29.wav
    please help
     
  22. Offline

    bytemunch

    That link is a 404. Make sure your music is in your Public folder of dropbox :)
     
  23. Offline

    Fi3t3

    for me it doesn't play the music. it says: Download Complete!, but i dont hear any music! my music is turned on and i dont have ANY permissions. in my case i'm op, but it doesn't work anyway. config:
    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://URLHERE
    Music:
        tothaface:
            Node: BCM.nodehere
            GlobalNode: BCM.Global.nodehere
            URL: http://dl.dropbox.com/u/46904799/The%20Rush%20vs%20Thalamus_%20Shock%20Your%20Senses%20%28Busy%20Dark%20Mix%29.ogg
    
     
  24. Offline

    leka213

    I am trying to do this plugin, but it won't work... when I type /bc song global (Song- Censored) It just downloads, and doesn't play?
     
  25. Offline

    PH0T0Nman

    errr sorry but what is meant by "node"
    edit: does .WAV work?
    edit2: Apparently not I tried .ogg & .wav but only .mid works -_-
     
  26. Offline

    d2004

    I's this dead ?
     
  27. Offline

    captainawesome7

    I think it still works. Well, it does on my server
     
  28. Offline

    d2004

    EDIT: Never mind :) a clean instal made it work
     
  29. Offline

    Desertive

    Hello!

    Great plugin you have here! Simple and powerful thought I would suggest a few things here (I don't know is this plugin's owner still willing to update the plugin but still...):

    -Stop command is possible with for example SpoutEssentials so why it's not possible to code it?
    -Well if you can't measure the time of the song, you still could set the jukebox to repeat after the player is connected again to the server.. i mean the possibility. Now it's only playing it once and thats all (i would like to play it everytime when a player comes to my shop or something like that).
    -Also about the time, it would be awesome if you could set the interval when the music can start again (still talking about jukeboxes).
    -Url support to replace the song name (that you can play a song from the internet) with command /bcm [song] [global]? Or were you thinking that in near past... oh well just mentioned for now.
    -Jukebox's playing range. If I could set how far it plays it would be cool (concert hall for example.. needs a lot of range).
    -Possibility to set some jukeboxes to work between each other? Meaning that you put a one song to play from all of the marked jukeboxes at the same time.

    Well those were just my thoughts when I tried this plugin. It's a great plugin and will keep that jukebox feature in my server as long as I can. Cheers!

    P.S. Sorry about my english.

    P.P.S. Damn, I red from your profile that you aren't coding anymore. Well whatever.. :p
     
  30. Offline

    Untar1

    can you post a video tutorial pls?
    Because when i type /bcm tothaface(used default name) it writes "downloading ..." and does nothing after that
     
  31. Offline

    d2004

    Any way to make this work for meincraft 1.2 ?
     

Share This Page