Solved Stopping a Effect.RECORD_PLAY?

Discussion in 'Plugin Development' started by Door Knob, Dec 28, 2013.

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

    Door Knob

    Hi. I'm trying to stop the Effect.RECORD_PLAY from playing. I can make one play no problem, using this:
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, Material.getMaterial(2257).getId());
    2.  

    which should play Cat, at the player's location when this was called. I used to be able to stop it like this:
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, 0);

    but this does not work anymore. Any help?

    Bump...

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

    TrilisconPvP

    Try
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, null);


    Or
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, false);


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

    Door Knob

    Nope, doesn't work.

    EDIT: they both don't work
     
  4. Offline

    Garris0n

  5. Offline

    Door Knob

    No, it's all effects. It worked fine before 1.7, not sure what happened.
    Garris0n
     
  6. Offline

    Garris0n

    Try using setPlaying(null) on an actual jukebox and see if it works. If not submit a bug report because that method is broken.
     
  7. Offline

    Door Knob

    Garris0n
    I did this because... well I don't remember. It was a good reason. I'm going to make sure it's not just my code misbehaving.
     
  8. Offline

    mkezar

    try this
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, T);
     
  9. Offline

    Door Knob

    Sorry y'all. It was just me being a dumbass. I'm so sorry for wasting all your time.
     
Thread Status:
Not open for further replies.

Share This Page