Solved PlayerClickButtonEvent / PlayerStampPressureplateEvent?

Discussion in 'Plugin Development' started by Uniclaw, Jan 1, 2013.

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

    Uniclaw

    Hi!

    is there a event such "PlayerClickButtonEvent" or "PlayerStampPressureplateEvent" ?

    Greet
     
  2. Offline

    fireblast709

    PlayerInteractEvent, with Action.RIGHT_CLICK_BLOCK for buttons and Action.PHYSICAL for pressureplates, iirc
     
  3. Offline

    NinjaW0lf

    PlayerInteractEvent should work for both of these. use getClickedBlock to check if block was button. And event.getAction should work for pressure pad, do if (event.getAction() == Action.Physical) { //code}

    fireblast709 goddammit u ninja'ed me :p
     
  4. Offline

    Uniclaw

Thread Status:
Not open for further replies.

Share This Page