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

Interact events being missed for armor. Affects all major versions of spigot.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Tested on spigot builds:
      1.8.8,
      1.14.4,
      1.15.2

      Ran on Windows 10, and on Ubuntu Server 18.04

    • This server is running CraftBukkit version git-Spigot-a99063f-8ea9b13 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
    • Yes

      Place down a double chest, place an item frame on the front of one half. Step back so there is a gap of three blocks between the block you are standing on and the chest.

      Put an armor piece in your hand (Tested using diamond boots and diamond chestplate), and right click on the chest to open it.

      Exit out of the GUI, and then right click on the item frame, the armor will be equipped, but no event at all will be fired. I have tested this using a utility to listen to every single event being called, and no relevant events are called at all.

       

      This bug is likely less specific than detailed, but these are reproducible steps.

       

      Note: On 1.15.2 this calls an PlayerAnimationEvent, but this is because 1.15.2 swings the arm for interactions. This is not the only intended event as without opening the chest, PlayerInteractEvent/PlayerInteractEntityEvent are called.

       

      Why Major?

      This bug can be used to equip armor the player may otherwise be blocked from using, or prevent plugins from detecting that armor has been equipped (I believe spigot should have an armorequipevent anyway, but this is beside the point). This is can cause huge issues for servers who need reliable armor equip detection.

       

      Thanks.

            Unassigned Unassigned
            Liquake Liquake
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: