Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7499

PlayerInteractEvent is called even when PlayerInteractEntityEvent is cancelled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • The bug is reproduced in all environments

    • CraftBukkit version 3904-Spigot-224dad5-1bf30a4 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT)
    • Yes

      When the player right click while looking at an entity (cow for example) and holding an ender pearl, the PlayerInteractEvent is triggered launching the ender pearl even after cancelling PlayerInteractEntityEvent.

      The problem consists of calling two different events for the same action, and these events are not correlated. Therefore, it is not possible to cancel the entire player action at once.

        1. App.java
          1 kB
          Eduardo pilati

            Unassigned Unassigned
            Pilati Eduardo pilati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: