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

    AuZor

    I think you're misunderstanding. I have PermsEx, and I'm op. What more do I need? o_o
     
  3. Offline

    davvem

    I don't find em either... unless there aint any xD Please don't give me the angry look *crawls into a corner* Just, is it any permission nodes, or no? xd
     
  4. Offline

    captainawesome7

    The node option in the config is the permissions node. it doesn't support pex
     
  5. Offline

    AuZor

    It actually does. I've got permissions now.
    However, it does not play.

    Code:
    JukeBoxes:
        iron_ingot:
            Node: BCM.nodehere
            URL: http://dl-web.dropbox.com/get/Minecraft_02_test.ogg
    Music:
        deadmaufive:
            Node: BCM.nodehere
            GlobalNode: BCM.Global.nodehere
            URL: http://dl-web.dropbox.com/get/Minecraft_02_test.ogg
    
    It even said song was downloaded, and I've put the iron_ingot in. Also tried activating with redstone and typing /bcm deadmaufive (the song) global

    Here's the dropbox music I'm trying to play.
     
  6. Offline

    captainawesome7

    wrong link. put the file in a public folder and click the little arrow then click "copy public link"
    when i click that one it says "you dont belong here"
     
  7. Offline

    AuZor

    /Fixed. I removed this song and added another one. It all works now, thanks.

    Loops not possible?
     
  8. Offline

    captainawesome7

    no spout has no idea when to start the next song
     
  9. Offline

    AuZor

    Can't it just repeat the last song played in a jukebox?
     
  10. Offline

    captainawesome7

    what do you mean?
     
  11. Offline

    AuZor

    When the song has finished, it will start again from start.
     
  12. Offline

    captainawesome7

    there is no way to tell when the song finishes, you can start one but there is no way to know when the song ends.
     
  13. Offline

    AuZor

    How come not? There's a lot of other plugins which can loop music :-/
     
  14. Offline

    captainawesome7

    links?
     
  15. Offline

    AuZor

  16. Offline

    captainawesome7

  17. Offline

    Lexington

    Almost no file works in ogg vorbis ...
     
  18. Offline

    captainawesome7

    use audacity
     
  19. Offline

    Lexington

    Ok i try Audacity

    Still the same
    Code:
    00:20:46 [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:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
            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 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:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.IllegalArgumentException: Permission name cannot be null
            at org.bukkit.permissions.PermissibleBase.isPermissionSet(PermissibleBase.java:50)
            at org.bukkit.craftbukkit.entity.CraftHumanEntity.isPermissionSet(CraftHumanEntity.java:75)
            at org.getspout.spout.SpoutPermissibleBase.isPermissionSet(SpoutPermissibleBase.java:80)
            at org.getspout.spout.player.SpoutCraftPlayer.isPermissionSet(SpoutCraftPlayer.java:173)
            at de.bananaco.permissions.PermissionBridge.internalHasPermission(PermissionBridge.java:35)
            at de.bananaco.permissions.PermissionBridge.permission(PermissionBridge.java:61)
            at de.bananaco.permissions.PermissionBridge.has(PermissionBridge.java:51)
            at me.ic3d.bcm.BCM.hasPerm(BCM.java:41)
            at me.ic3d.bcm.BCMcmd.onCommand(BCMcmd.java:44)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 13 more
    
    Converted from mp3 to ogg
    Some files work , some don't

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

    captainawesome7

    not my issue
     
  21. Offline

    Lexington

    okay , moving to other working plugin
     
  22. Offline

    captainawesome7

    It's your fucking music you retard
     
  23. Offline

    Lexington

    Music is okay kind sir.
    It would be nice to point that your plugin is not capable of reloading config while server is running like 99% other plugins.
     
  24. Offline

    captainawesome7

    lol tons of plugins don't even have configs and only the really big ones even bothered adding config reloading.
     
  25. Offline

    L5D

    String node = this.plugin.config.getString("Music." + rawName + ".GlobalNode");
    String url = this.plugin.config.getString("Music." + rawName + ".URL");

    Just test if url is null by security... (in lowercase very important hum)

    Command reload with just
    public boolean onCommand(....){
    plugin.config.load();
    }

    Usefull.
     
  26. Offline

    Imm0rt41

    hey, i just installed this plugin and i get this in the startup console

    Code:
    23:05:45 [INFO] [BCMusic] Version 3.2 Permissions system detected!
    23:05:45 [SEVERE] Error occurred while enabling BCMusic v3.2 (Is it up to date?)
    : while scanning a simple key; could not found expected ':'
    while scanning a simple key
     in "<reader>", line 15, column 5:
            bassiskicking
            ^
    could not found expected ':'
     in "<reader>", line 16, column 13:
                Node: BCM.bassiskicking
                    ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(Scanne
    rImpl.java:398)
            at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.jav
    a:229)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    8)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:563)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
            at org.bukkit.util.config.Configuration.load(Configuration.java:89)
            at org.bukkit.plugin.java.JavaPlugin.getConfiguration(JavaPlugin.java:11
    6)
            at me.ic3d.bcm.BCM.onEnable(BCM.java:62)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:413)
            at org.bukkit.Bukkit.reload(Bukkit.java:182)
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    55)
            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 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:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :501)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    running bukkit L33T
     
  27. Offline

    captainawesome7

    looks like your config is messed up, mind posting it?
     
  28. Offline

    Imm0rt41

    i fixed it, it was that one song for some reason, it didnt like it. i just removed the songs stuff from config.

    aside from that, you should add a /bcm list to list all the songs in the server that can be listened to.
     
  29. Offline

    Limstal

    Unless it got removed recently, I think it does have that. We definitely use it on my server to keep up with all the pretty obscure names I give them.
     
  30. Offline

    Imm0rt41

    its not in the command list
     
  31. Offline

    Limstal

    Have you tried typing /bcm list?
     

Share This Page