The 'PlayerInteractEvent' does not fire if all of the following is true:
- The player is in adventure mode
- The player left clicks
- The player has a block in front of them
I would expect the event to fire with an action value of LEFT_CLICK_BLOCK, which is the case if the player is in survival mode.
Other notes:
- The event fires for LEFT_CLICK_AIR in adventure mode
- Paper can fire the event for LEFT_CLICK_BLOCK in adventure mode
This may be intended behavior but it feels incorrect, so feel free to tell me "no".
Provided a sample plugin that sets your gamemode to adventure and listens for the PlayerInteractEvent so you can verify that punching a block in adventure mode does not trigger the PlayerInteractEvent. Switch back to survival mode and you can see that punching a block does not trigger the event.