Question about Event

Discussion in 'Plugin Development' started by Pablomittens, Jul 1, 2011.

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

    Pablomittens

    Just wondering is there any Jukebox/musicplay/record event or anything like that in craftbukkit?

    I have found a RECORD_PLAY Effect. But I dont know if that would be for what im doing. and I dont really know how to use effects. If anyone could help please post.

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

    Everdras

  3. Offline

    Haias

    You could consider using PlayerInteractEvent to check if the user right clicks on a jukebox with a music disk in their hand.

    Hacky, but an option. I think.
     
  4. Offline

    Everdras

    I'd just make sure to be careful of how you do it. I try to avoid adding overhead when making plugins (i.e. there might be a better way than running a check every single time a player right clicks to see if they're holding a record, then check again to see if the target is a jukebox).
     
Thread Status:
Not open for further replies.

Share This Page