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

    ChrisX930

    works this with CraftBukkit 1240?
     
  3. Offline

    captainawesome7

    yeah
     
  4. Offline

    Yurikoma

    if it works could you update your title please

    i get an internal error when using this

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

    ChrisX930

    Is it possible that the songs will repeat?
    I want it
     
  6. Offline

    captainawesome7

    ?
     
  7. Offline

    ChrisX930

    Sorry, my english isn't so good^^

    I would like to see the music repeatedly (i hope this is correct)
     
  8. Offline

    captainawesome7

    Because of Spout limitations, there is no way for me to tell when the song ends, so I can't know when to start the next one.
     
  9. Offline

    ChrisX930

    Ah, okay

    Is it possible to start the music only for one or two groups?
    I want to build a dungeon, the players in th dungeon should hear a other song as the others.

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

    captainawesome7

    No
     
  11. Offline

    Klotzonator

    Got a few questions:

    - Is there a way to make it repeat a sound/song over and over again? Exept from creating a massive ogg file that contains a lotta loops of the song ;)
    >> Just saw it was requested earlier ... to bad. Hopefully there will be additions to Spout to detect position and endings of songs played.

    - Is there a way to make it play a sound time-dependent, e.g. every Minecraft day at 8:00am?
    - What about a config option to set a distance, at which the sound is heard?
    (I'd like to use this plugin to make church bells ;) )
    - Why didn't I try this one out earlier? :D

    Edit:
    Found a bug/glitch: If one happens to hit the jukebox with the iron ingot (or whatever is configured) it will comsume it, even if there was an iron ingot "in there" from the last time ...
     
  12. Will this be updated to the latest RB of Spout? :)
     
  13. Offline

    Limstal

    This sounds like it could be fun, is it possible?
     
  14. Offline

    captainawesome7

    no, it should still work.
     
  15. Really? :confused: Let me do some tests again..

    EDIT: First of all, I would to apologize for my previous post.
    I just tested the plugin again and it worked flawlessly! When I tried earlier today, it gave a massive wall of errors and mentioned something like "is it up to date?", so I thought that it was caused by a recent API break or something. Really strange, I wonder what caused this. Ah well that doesn't matter any more. :)
    Anyway, it started without any errors now on CB 1317 Spout 1.0.6.449. :D

    EDIT2: This error popped up when I typed stop
    Code:
    20:59:45 [SEVERE] Error occurred (in the plugin loader) while disabling BCMusic v3.2 (Is it up to date?): null
    java.lang.NullPointerException
        at java.lang.Class.isAssignableFrom(Native Method)
        at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    EDIT3: Are you really really sure that everything is working as it is supposed to?
     
  16. Offline

    Raycrash

    Can you please add a radius for jukeboxes ? don't want to spam everyone with it =)
     
  17. Offline

    captainawesome7

    there is a radius...
     
  18. Offline

    Raycrash

    Well with the jukebox everyone could hear it ;(

    If I put a song in jukebox and music will it then be global maybe ?
     
  19. Offline

    captainawesome7

    no. if you're close to the jukebox, you can hear it.
     
  20. Offline

    Silvo

    I'd like to have a repeat function too. But it is unlikely to ever happen.
     
  21. Offline

    Raycrash

    Well on my server everyone could hear it ;(
    I will check again though to be sure thats nto a mistake on my side
     
  22. Offline

    Buckethead

    im confused. u can only play a song from a website?
     
  23. Offline

    captainawesome7

    yeah
     
  24. Offline

    Buckethead

    that is annoyingly complicated
     
    werwertuu likes this.
  25. Offline

    Limstal

    Get Dropbox, put the song in the Public folder. Copy the link and put that in the config file. Done. It's not that bad.
     
  26. Offline

    Buckethead

    *rasberry sound*
     
  27. Offline

    zackman0010

    For some reason, I cannot hear any songs that are playing on the server that just started SPOUT. It does not use any Permissions system, just OPs and non-OPs. I gave the server owner my own BCMusic config file that worked just fine in my server, but when we were in his server, none of the songs would play for me unless it was from a Jukebox.
    /bcm works for everyone but me.
     
  28. Offline

    David T.

    I keep getting the message "An internal error occured while attempting to perform this command" I do have spout and I am using the spoutcraft launcher, I don't know what I could be doing wrong.
     
  29. Offline

    zackman0010

    That normally means that you are either typing in the command wrong or there is no such song.
     
  30. Offline

    AuZor

    I do not have permissions, even though I am an op. Where's the permission nodes anyways? I guess I'll need them..
     
  31. Offline

    captainawesome7

    [​IMG]
     

Share This Page