Player Pressure Plate Event?

Discussion in 'Plugin Development' started by DjMacmo, Jul 20, 2013.

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

    DjMacmo

    Hey,
    i'm searching for the event when a player trigged a pressure plate. :)
     
  2. Offline

    StrangeOne101

    The closest thing you can probably get is the PlayerMoveEvent and just check for pressure plates at the player's coords.
     
  3. Offline

    DjMacmo

    Hhhmm, that doesn't work. :(
     
  4. Offline

    tills13

  5. Offline

    DjMacmo

    I found a bug, when i send a block change with a stone plate then i cant activate this plate!
     
  6. Offline

    etaxi341

    DjMacmo
    Code:java
    1. @EventHandler
    2. public void Claymore (PlayerInteractEvent ev) {
    3. if(ev.getAction().equals(Action.PHYSICAL)){
    4. if(ev.getClickedBlock().getType() == Material.STONE_PLATE){

    This is Pressure Plate Trigger Event
     
    Reflxction and Europia79 like this.
  7. Offline

    DjMacmo

Thread Status:
Not open for further replies.

Share This Page