onBlockBreak to not drop item

Discussion in 'Plugin Development' started by Cheesier, Apr 16, 2011.

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

    Cheesier

    Can't find they way to do this, to stop the item that break onBlockBreak from dropping on the ground. Anyone know this ?

    Maybe if i just stop the event with
    Code:
    event.setCancelled(true);
    and then set the block item id 0(air), that would do it right ?
     
Thread Status:
Not open for further replies.

Share This Page