Player Midi

Discussion in 'Archived: Plugin Requests' started by DJ_SLIM3, Dec 31, 2013.

  1. Offline

    DJ_SLIM3

    Hello again Bukkit Community! I've made a post concerning this genre of plugin before, but I realize now how extremely unclear I was about what I wanted.
    That being said, my desire for this plugin has changed, which I will explain:

    Note: Please be aware that I've tried plugins like CommandBook to fulfill my desires, but they don't meet my expectations.

    Basic idea of the plugin: Pull a midi file from the plugin folder (preferably held in a "midi" folder inside of the plugin folder).

    Commands:

    • "/midi play name" - play a specified midi file to the command sender.
    • "/midi play name username" - play a specified midi file to the specified player.
    • "/midi stop" - stop the midi
    -if it's possible, it'd be awesome if there'd be a way to control the volume of the midi, although I don't think that's possible. In case there is, the commands could look something like this:-
    • "/midi play name volume"
    • "/midi play name username volume"
    Note: for the correct syntax of the commands, players/console would need to substitute "name"
    with the name of the midi file, "username" with a player's username, and "volume" with an integer.
    Points of Reference: BAMRadio (look at attached video for a comparison between CommandBook and BAMRadio)

    File Support: Midi

    Thanks for your time everyone! You all rock! :)

    Reference Video:
     
  2. Offline

    khm69

    I think that it's imposible. For make that, you must to send/stream the midi for all players, and make this with Java cause too overhead.
     
  3. Offline

    DJ_SLIM3

    BAMRadio plays the song to the whole server, not an individual player.

    I never thought of that! I will definitely look into that, thanks! ^_^

    T3h Cr33p3r I've successfully done most of what I want to have happen with the custom sounds, but I've run into a problem. Ideally, I want to play sounds that are more than a minute long (for minigames and things), is there a way to play those sounds without crashing my game? :p I read something about streams, but came up with nothing on how or why to use them :\

    @T3h Cr33p3r Nevermind, I resolved it. My issue was that the file was ridiculously long, and cause the client to freeze upon the loading of said sound.

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

    Me4502

    What is wrong with how CommandBook does it?
     
  5. Offline

    BillyGalbreath

    Pl3xPager plays midi files. I also have a "test" plugin called "Pl3xMidiPlayer" on my jenkins that plays midi files. Neither of these do exactly what you want, but are perfect examples to show how possible this is to do.

    Check out this, which might be what youre looking for: http://dev.bukkit.org/bukkit-plugins/noteblockplayer/
     
  6. Offline

    Me4502

    I can try getting CraftBooks midi library pulled into Commandbook, it's a greatly improved version of commandbooks which sounds similar to BAMRadio's AFAIK.
     
  7. Offline

    DJ_SLIM3

    The midi library used in CommandBook isn't nearly as powerful as CraftBook's

    BillyGalbreath I'll definitely look into that!

    Me4502 That'd be awesome if you could! Craftbook's midi library is amazing compared to CommandBook's
     
  8. Offline

    Me4502


    I've just submitted a request with all the changes done. Wizjany said he will check it and merge it tomorrow morning his time. No idea when that is, but it hopefully will be in a CommandBook dev build within 24 hours.
     
  9. Offline

    DJ_SLIM3

  10. Offline

    Me4502

Share This Page