Revert Missing Piston Event for Headless Piston Exploits
描述你希望添加的功能。 Describe the feature you'd like.
When allow-headless-pistons and allow-permanent-block-break-exploits are enabled in Paper, players can use exploits like headless pistons to break permanent blocks such as bedrock or blocks protected by plugins like BlockLocker. However, some event does not fire in these cases causing protection plugins can't prevent the blocks from being broken, allowing players to bypass protection.
I suggest re-add piston event in PistonBaseBlock.java when block is broken using headless pistons, that allowing protection plugins to cancel the event and prevent it. Additionally, it should be configurable because this feature will affect vanilla behavior.
From what I understand, this is because the event isn't firing when breaking the blocks, although I think this should be fixed in Paper, but I guess they won't fix it lol.
其他 Other
https://github.com/rutgerkok/BlockLocker/issues/180