Prevent-destroy/-use does not prevent crop trampling by jumping.
Psithief opened this issue ยท 2 comments
In survival mode, anyone can destroy wheat crops by jumping up and down on them even if they are protected by prevent-destroy
.
Wow, that one sure took a long time to catch! :D
It'd be easier to put this in prevent-use
because of the event type.
You need to check whether PlayerInteractEvent
is interacting with BlockType.SOIL
, and if it is then cancel it if the player is not allowed.
@phaed420 I see you're still alive. Will you be taking pull requests, or disappearing for another few months?