Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-348

PlayerInteractEvent cancelled by default in 1.12.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • OS: Linux UbutnuĀ 16

      When trying to check if the PlayerInteract event is canceled to make sure my code doesn't run I noticed it seemed it was always canceled when I right click the air with armor. I am not sure why it was doing that so I disabled all plugins but mine and it still canceled when I right click armor in the air to put it on. I check this for my Crazy Enchantment plugin to know when a player puts on armor with a potion effect enchantment so that I can add the effects unless it is canceled. I tested this by using a debug message and it always stopped at 2 when right clicking any item in the air.

        1. Debug Code.png
          59 kB
          Joseph
        2. Debug In Action.gif
          2.77 MB
          Joseph

            Unassigned Unassigned
            BadBones69 Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: