Closed WMGameLive closed 4 years ago
This is created by a feature that prevents breaking NCP+protections support. This issue explains why
please use /ph config set pretestblockbreak false or set the pretestblockbreak config entry to false and reload the config (/ph config reload) to disable this.
In the API there is a SimulatedBlockBreakEvent that the test break is inherited from, if you want to detect or ignore the event specifically.
keep in mind turning off the second blockbreak will cause some really strange behavior when using NoCheatPlus.
oh, I see. thank you!
Describe the bug When the player break a PLAYER_HEAD, BlockBreakEvent will be called twice.
To Reproduce
Plugins
Servers
I found this problem when using my plugin to count the number of player destroyed blocks. I removed all plugins except PlayerHead, and write a test plugin that only have these code