Separate names with a comma.
Comments in 'Plugin Development' started by iAnonymous28, Sep 8, 2015.
As the title says how do i know if somone is ignoting a tnt what events do we use here?
PlayerInteractEvent, check the hand of the player for flint and steel and the block touched is tnt
PlayerInteractEvent, check if event block is TNT, event item is flint and steel and event action is RIGHT_CLICK.
check the action too. Otherwise, breaking TNT with flint and steel will get detected too.
You forgot a biggie. Remember to check if the event is cancelled.
It wouldn't be an issue if you have the @ignoreCancelled tag enabled.
Depends if you will use it.