TroDerp / EggWars

A spigot eggwars plugin by RosilloGames. Based on gaelitoelquesito's eggwars.
https://www.spigotmc.org/resources/free-eggwars-mini-game-remastered.97569/
GNU General Public License v3.0
4 stars 3 forks source link

wood and log blocks can be broken with an axe by stripping them before #1

Closed MPK1 closed 1 year ago

MPK1 commented 1 year ago

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 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.