It is possible to break blocks of the types *_LOG, *_WOOD, *_STEM, and *_HYPHAE by right clicking them with an axe before. If the map contains such blocks, the player can break blocks which should not be breakable.
Why does this happen:
The stripping with an axe fires an BlockPlaceEvent and adds the respective block to the placedBlocks Set. The player can now simply break the STRIPPED_* block.
How can it be fixed:
Simply prevent the player from stripping blocks as it provides no advantages to the gameplay.
Short Description
It is possible to break blocks of the types
*_LOG
,*_WOOD
,*_STEM
, and*_HYPHAE
by right clicking them with an axe before. If the map contains such blocks, the player can break blocks which should not be breakable.Why does this happen:
The stripping with an axe fires an
BlockPlaceEvent
and adds the respective block to theplacedBlocks
Set. The player can now simply break theSTRIPPED_*
block.How can it be fixed:
Simply prevent the player from stripping blocks as it provides no advantages to the gameplay.