RightClick Event

Discussion in 'Plugin Development' started by Ziddia, Mar 30, 2011.

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

    Ziddia

    Okay, for one of my plugins, I was using PLAYER_INTERACT with onBlockRightClickEvent. But, there is no longer a right click event. What do I do?
     
  2. Offline

    MrChick

  3. Offline

    aPunch

    You can use onPlayerInteract(PlayerInteractEvent event). All of the events that were merged into that class should now work with this method, including BLOCK_RIGHTCLICK.
     
  4. Offline

    Ziddia

    ok thankyou very much.

    Forgot about the oops post XD
     
  5. Offline

    halvors

    How get only BLOCK_RIGHTCLICK? Is that possible?
     
  6. Offline

    MrChick

    No, you get all PlayerInteractEvents and then you'll check if it's a BLOCK_RIGHTCLICK. It's really not much more than it was previously.
     
  7. Offline

    Codisimus

    can you get BLOCK_DAMAGED or BLOCK_BREAK from PLAYER_INTERACT too?
     
  8. Offline

    MrChick

    No, why should you? Thats what the BlockEvents with BlockListener are for.
     
  9. Offline

    Codisimus

    i guess i was just trying to get rid of the BlockListener class lol
     
  10. Offline

    MrChick

    Poor little BlockListener :/ ;)
     
Thread Status:
Not open for further replies.

Share This Page