Bukkit broken. :(

Discussion in 'Plugin Development' started by chaseoes, Oct 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    chaseoes

    I have this:
    Code:
    Jukebox j = block.getState();
    System.out.println(j.isPlaying());
    But no matter what it always returns true, even if there's not even a record in the jukebox. Any ideas as to other ways to check if it's playing?
     
  2. try checking the data value whits record is inside, notice the server don't know the songs, so its never knows how long a song takes, it only sends to clients when they need to start the song
     
  3. Offline

    Infamous Jeezy

    http://www.minecraftwiki.net/wiki/Data_values#Jukebox
    Basically, check if the block is a juke box, and then get the data and compare it to the chart.
    Any value other than 0 and equal or lower to 11 means it's playing a cd I believe.
     
  4. Offline

    chaseoes

    After it's finished playing it still returns the data of the song that was playing (even if the record is removed).
     
Thread Status:
Not open for further replies.

Share This Page