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

    Drageer

    It stops in the middle of a song?
    Is there a certain time limit?
    Though thanks for this plugin! It's awesome! :D

    Edit:
    I also have some features I'd like to see :D
    You don't have to implement just some suggestions.
    1. Repeatable songs
    2. Songs per predetermined areas [worldguard areas? integrate with town plugins?]
    3. Make the songs go on for full length :p
    4. Songs for different events? [deaths, quests, spawning, coming home etc.]
     
  3. Offline

    Sim121

    I figured out that when you put a sword or any "usable" item in the jukebox to play a song, the item repair itself when you get it back.

    Is it fixable ?

    Thank you again for this plugin =)
     
  4. its awesome! Nice work!
    We now have minecraft partys! :D
    One request:
    Please add a command to reload the config file.
    Thank you!
     
    benning2009 likes this.
  5. Offline

    Grammar Troll

    Spout is the new BukkitContrib, and since all the names and such were refactored, all the BukkitContrib plugins will have to be updated to use Spout.
     
  6. Offline

    Jackson413

    Config:
    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.iron
            URL: http://manlyminecraft.net/raise.wav
    Music:
        raiseyourweapon:
            Node: BCM.raise
            GlobalNode: BCM.Global.raise
            URL: http://manlyminecraft.net/raise.wav
    Command I've Tried:
    /bcm raise
    /bcm raise.wav

    Craftbukkit Build:
    #1000

    BukkitContrib Version:
    Alpha v0.1.7

    Permissions Version:
    3.1.6

    In-Game Error
    An internal error occured while performing this command.

    Error in Console:
    02.08 13:11:49 [Server] INFO Caused by: java.lang.NullPointerException
    02.08 13:11:49 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    02.08 13:11:49 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    02.08 13:11:49 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    02.08 13:11:49 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    02.08 13:11:49 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    02.08 13:11:49 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'bcm' in plugin BCMusic v2.0
    02.08 13:11:49 [Server] SEVERE null
     
  7. Offline

    thernztrom

  8. Offline

    paully104

    Requesting a port to spout please and thank you!
     
    RGadelha likes this.
  9. Offline

    RGadelha

    Second that :D
     
  10. Offline

    Grammar Troll

    @thernztrom
    @paully104
    @RGadelha

    IC3D was last seen: Jul 24, 2011

    @joey23art
    Hey Joey, since you are our port expert (MobDisguise ;)), could you perhaps try to port this plugin to Spout?

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

    joey23art

    Yea, I'll take a look.
     
    RGadelha and paully104 like this.
  12. Offline

    paully104

    Thanks we appreciate it
     
  13. Offline

    RGadelha

    Did you?
     
  14. Offline

    joey23art

    I Did some work, I'll hopefully have it done tomorrow.
     
    RGadelha likes this.
  15. please update to work with spout
     
  16. Offline

    VanillaSnack

    the /bcm command is not working... I get only "internal error occured"

    How to make more ? I just have iron bars for music... how to make it happen with other items... i made the same just with gold bars and now there is no sound >.>
     
  17. Offline

    RGadelha

    OK, thank you!
     
  18. Offline

    EMOberger

    any word on maybe adding options to change distance, or a looping feature?
     
  19. Offline

    Oddstr13


    Changelog:
    Version 2.1:
    20110805 Updated for Spout

    Direct download: http://mirror.openshell.no/bcm-2.1.jar
    Source: https://github.com/oddstr13/BCMusic
     
    RGadelha and maniacmusic like this.
  20. yaaay The party goes on! :D
     
  21. Offline

    RGadelha

    Thank you very MUCH! :D
     
  22. Offline

    rslink

    @Oddstr13 What version of Spout? I'm getting a message that I don't have it, and I do have it installed.
     
  23. Offline

    AlphaRandulfr

    I'm getting an error every time I try the jukebox, it shows an error:

    23:57:30 [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)

    This is what's in my config file:

    Music:

    tothaface:

    Node: BCM.nodehere

    GlobalNode: BCM.Global.nodehere

    URL: http://URLHERE


    JukeBoxes:

    iron_ingot:

    Node: BCM.Black_Rose

    URL: https://dl-web.dropbox.com/get/music/Black Rose.ogg?w=4712ae96

    I've tried several different links to the song, but I can't figure it out! Please help me
     
  24. Offline

    Koutacles

    The music keeps playing even after the item is ejected from the jukebox. Is this intended?

    Also, a way to say in the config that some songs loop would be awesome. :D
     
  25. Offline

    alexms96

    hey, does this have a length cutoff?
    im only getting partway into songs and they stop

    Edit: they cut off about 1:30 in, is this a minecraft issue, bcm issue, or bukkitcontrib issue?
     
  26. This would be good if you could change to spout instead of bukkitcontrib
     
  27. Offline

    Oddstr13

    @rslink

    >version Spout
    19:53:13 [INFO] Spout version 1.0.1

    19:56:13 [INFO] oddstr13 joined the server! :D
    19:56:13 [INFO] [Spout] Successfully authenticated oddstr13's Spoutcraft client. Running client version: 101
     
  28. Offline

    Limstal

    Would it be possible to add a '/bcm list' command to list all song names? That would really come in handy :p
     
  29. Offline

    Taemera

  30. Offline

    Smex

    Ah reload command would be awsome!
     
  31. Offline

    handyplayer13

    Awesome plugin! :D

    Is there a possibility to stop the music and to display the title and the band in the game? :)
     

Share This Page