[INACTIVE][FUN] MineDJ v0.2 - Custom Playlists, DJ Booths, and Speakers in Minecraft [1000]

Discussion in 'Inactive/Unsupported Plugins' started by SwearWord, Jun 29, 2011.

  1. Offline

    SwearWord

    Plugin: MineDJ
    Version: 0.2

    Credits:
    Credit for this entire plugin goes to @Afforess and his amazing BukkitContrib library. He did all the hard work, I just wrote 20 lines of code and implemented his API.

    Features:
    The basic feature is being able to play a song globally on your server to all players. The more interesting part is DJ booths and Speakers. Booths are designated with signs and they can control what song/sound comes out from the Speakers, also designated by signs. You can broadcast pre-recorded messages to players or have a night club, etc.

    Requirements:
    You WILL need a client mod to be able to hear the music as well as BukkitContrib.jar installed on your server's /plugin folder. You can find both here.

    Track.txt
    All tracks must be hosted, this means you need a link which clients can download the song from. The format must be .ogg, .wav, or MIDI.
    Code:
    trackname=trackurl
    exampletrack=http://example.com/exampletrack.ogg
    Signs
    To designate a DJ sign that can control speakers write this on the sign and the right click it.
    DJ​
    song1,song2​
    song3,song4​
    uniqueid​
    To designate speakers linked to the DJ sign write this on a sign and right click it.​
    Speaker​
    uniqueid​
    Now you have linked this speaker with the DJ booth and right clicking the DJ sign will cycle through the songs.​
    Known Bugs
    I've yet to speak with @Afforess but sometimes you will not hear any output until you restart MineCraft and restart the music.​
    Commands:
    Code:
    /music -r: Reloads playlist.
    /music <trackname>: Plays track
    Disclaimer:
    I do not take any responsibility for any unauthorized music distribution. You may only use this plugin if you are authorized to distribute any music that you use in conjuction with it. By downloading this plugin you are agreeing to these terms.

    Download

    Changelog:
    • Version 0.2
      • Added DJ and Speaker signs
    • Version 0.1
      • Initial release
     
    RGadelha likes this.
  2. Offline

    LeGenDaryX

    I can't hear the music. But i get a message that its downloading the song, and playing it.
     
  3. Offline

    RGadelha

    Same for me but it was working for MC 1.7.2.
     
  4. Offline

    sole10

    It only says playing ChampagneShowers but i can't hear anything (music100, sound100)...:confused:

    Same problem to me...

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

    rolandostar

    Same here
     
  6. Offline

    Atlis

    adding "softdepend: [BukkitContrib]" to the plugin.yml fixes this problem by making it wait for BukkitContrib to load before trying to load MineDJ. I just hope SwearWord adds it in the next version so those of us with this problem don't have to add it ourselves every time there's a new version :)
     
  7. Offline

    RGadelha

    It didn't fix it for me :'(
    Edit:
    It's working, the culprit is TMI's id.class, it's breaking BukkitContrib SP.
    Edit again:
    The culprit was ZanMinimap's uq.class.
     
  8. Offline

    Phun

    Doesn't work for me.. the only thing it says is "Track not found" . :|

    Ok i got that to work, now it just says "DOWNLOAD FAILED!" ...

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

    CloseKnight

    I keep getting this error everytime I try to start a song with /music

    EDIT: Ignore that i'm an idiot >_>

    However signs still don't work for me...
     
  10. Offline

    AgentKid

    Configurable radius for sound pl0x? Either by config.yml/tracks.txt or 3rd line on Speaker or something would be nice :) Love the plugin, though.

    EDIT: Bug! I prefer the contents of my messages to be a surprise, so I made them 1.wav, 2.wav, 3.wav etc. When I tell it to play 1.wav, it plays 1.wav. The next time I try, it plays 10.wav, then 11.wav, then 12.wav. If I try to play 2.wav, it plays 12.wav, then 2.wav, etc. It seems to play anything that has that track name in it.
     
  11. Offline

    RGadelha

    @SwearWord:
    DJ and Speaker signs are not working for me but the commands (/music -r and /music <trackname>) are.
    By the way, the file plugin.yml inside the plugin's jar file says "version: 0.1".
    Is that normal?
     
  12. Offline

    rolandostar

    I got it work! for a short time, i did /reload, and stopped working, :S so close!
     
  13. Offline

    IENERGETIC79

    This looks like a amazing plugin, but I just want to figure out how to use it on my server. Please help.
     
  14. Offline

    rolandostar

    Explain your problem :p
     
  15. Offline

    srsdude

    Suggestion: make this easier to find by putting [BukkitContrib] in the title
    The reason I ask for this is because I search for "contrib" on the fill to filter all the "normal" plugins away.

    1. Install BukkitContrib Bukkit plugin
    2. Install BukkitContrib CLIENT MOD <-- YOU MUST DO THAT
    3. Install THIS plugin on server

    enjoy

    I destroyed both the speaker and the DJ signs, but the music is still playing, and I can hear it everywhere
    I'll wait until the track is done, but this most certainly looks like a bug
    EDIT2: The music stopped as soon as the track finished. A-OK
     
  16. Offline

    stendon

    i don't understand how to add the link
     
  17. Offline

    odielag

    That did the trick! Thank you... no more console errors and it works fine : )
     
  18. Offline

    srsdude

    I'm not sure where to post this, either here, or in BukkitContrib, but several things would greatly improve this:
    • Leaving game should stop music (BukkitContrib bug?)
    • Breaking speaker signs should stop those speakers
    • Breaking the DJ sign should stop the music
    • Make it so clicking the DJ sign would restart the current track if it's the only one on the playlist
    • Play/stop signs
    • Once added to a DJ, speaker signs should mute/unmute themselves when clicked
    Also there are some bugs with the music not playing or playing incorrectly like mentioned in the OP
     
  19. Offline

    dunem

    works fine for me with the /music command

    nothign works with signs tho, i think essentials sign protection is the cause. however not working on test server with no plugins.
     
  20. Offline

    srsdude

    A small question, is there a new version planned and if so, what is the planned or expected release date?
     
  21. Offline

    iPhysX

  22. Offline

    sfxworks

    I would like the ability to look music and have it autoplay. Is this possible?

    One more very important thing. Multiworld support.

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

    Ax333l

  24. Offline

    syth400007

    please can someone help me get the dj sign and speakers working it works through the command but not when right clicking on the dj sign nothing is happing
     
  25. Offline

    RGadelha

    I've already asked for this 10+ days ago but got no answer :'(
     
  26. Offline

    GazerDwarf

    @syth400007 @RGadelha
    I got the DJ signs to work, mine had to be sign posts (itemid: 63) not wall signs (itemid: 68). You can place a normal sign but it must be a sign post [​IMG] not a wall sign [​IMG]. Hope it helped.
     
    jumika likes this.
  27. Offline

    RGadelha

    Signs never worked for me but now it's worst. When I right click Speaker sign this error appears in CraftBukkit console:
    Code:
    2011-07-26 14:06:31 [SEVERE] Could not pass event PLAYER_INTERACT to MineDJ
    java.lang.NullPointerException
          at com.SwearWord.MineDJ.DJplayerlistener.onPlayerInteract(DJplayerlistener.java:60)
          at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
          at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
          at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
          at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
          at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java: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)
    Could it be BC's fault, I'm using the last dev build?
     
  28. Offline

    Moe041991

    It wont even download the song. It just says Play XY and does nothing :(.

    CB1000
     
  29. Offline

    brolymaximum

    I feel so dumb, but how do i get this to work? Every time i do /music *song* it just says that it isn't a track. Is the track.txt file in the original post the format to be used?
     
  30. Offline

    JargonTheRed

    I got the signs to work perfectly now. I found out that I needed to write it like this for it to work:

    DJ
    pirate,

    1

    Once adding a comma after the song name, hallelujah. Oh, and it needs to be a sign post as stated by GazerDwarf.



    Yes, you need to type in the track URL's on the tracks.txt, like this:

    trackname=trackurl

    So in my case, it would be:

    Pirate=http://dl.dropbox.com/u/35498755/Music/13. You Are********

    Would it be possibe to add timed music? With that I mean music that starts at predetermined intervals, like two songs that play during the night and three during the day?

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

    RGadelha

    SwearWord abandoned us, the last time he showed up was fifth of july :'(
     

Share This Page