PlayerInteractEvent does not fire in Adventure mode for LEFT_CLICK_BLOCK actions

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      Tested on Spigot 1.20.4-1.21.4 running a local server. Provided plugin is for 1.20.4

    • 4053-Spigot-e9ec548-98b6c1a (MC: 1.20.4)
    • Yes

      The 'PlayerInteractEvent' does not fire if all of the following is true:

      1. The player is in adventure mode
      2. The player left clicks
      3. 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.

            Assignee:
            md_5
            Reporter:
            Kevin Cranmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: