Blocking Fire Extinguish Events?

Discussion in 'Plugin Development' started by ryanhamshire, Feb 22, 2012.

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

    ryanhamshire

    I've noticed that a player creating fire is a block place event, but putting it out by punching it is not a block break event. Which event can I look for to be notified when a player tries to put out a fire?
     
  2. Offline

    nisovin

    Have you tried PlayerInteractEvent?
     
  3. Offline

    Zarius

    You'll have to use PlayerInteractEvent as nisovin stated but keep in mind that this will be the block "through" the fire (well, last time I tried it). You should be able to get the fire by using a function like player.getlineofsight(block.location) (don't know the exact name) which will return a list of blocks between the player and the block interacted with, then looping through the results to search for fire.
     
Thread Status:
Not open for further replies.

Share This Page