[BUILDTOOLS-348] PlayerInteractEvent cancelled by default in 1.12. Created: 31/Jul/17  Updated: 01/Aug/17  Resolved: 31/Jul/17

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Joseph Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.12, Bug
Environment:

OS: Linux Ubutnu 16


Attachments: PNG File Debug Code.png     GIF File Debug In Action.gif    

 Description   

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.



 Comments   
Comment by Joseph [ 01/Aug/17 ]

Ah, sorry about that. When I tested a while ago it worked I thought but I guess not because I down graded and its doing it still. Sorry about the false report.

Comment by md_5 [ 31/Jul/17 ]

Events that do nothing to the world are cancelled.
These events are "fake interacts" that Bukkit produces from armswings, they do not exist in Vanilla.
Armor placing is not a result of the interact event, this is not new behaviour

Generated at Fri Apr 11 20:54:14 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.