onBukkitFillEvent

Discussion in 'Plugin Development' started by Marius A. Winsjansen, Sep 24, 2011.

Thread Status:
Not open for further replies.
  1. Greetings,

    Can some1 give an example on how to code the fill event?

    I whant to know when some1 fill a buckit whit lava!

    Thanks
     
  2. Offline

    Nitnelave

    Listen for the bukketFillEvent
    In the event, check the itemInHand. I don't know if it's after filling (then you just have to get it's id to see if it contains lava) or before that. In the last case you could use the blockclicked and compare it to lava
     
Thread Status:
Not open for further replies.

Share This Page