[PLUG-409] Cancelling clickevent does not prevent swapping from/to offhand Created: 08/Jul/20  Updated: 08/Jul/20  Resolved: 08/Jul/20

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

Type: Bug Priority: Minor
Reporter: Jelle Keulemans Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: cancellable, clickevent, inventory, offhand
Environment:

Windows 10 Spigot 1.16.1 server


Version: 1.16.1
Plugin: CraftEnhance
Guidelines Read: Yes

 Description   

When I cancel the click in a chest gui, it is preventing the click from happening, but not the swapping to the offhand. The result of this is that players can simply press 'F' on an item in the gui (that's not supposed to be obtainable) to get it. 

You would think that I made a mistake in my code, but the cancelling is working in 1.14.4, and no items can be stolen by swapping it to a player's offhand.

I hope that this really is an issue in Spigot and that I'm not wasting your time.

 
Update: it seems like this is a client-side issue somehow. The items are not actually getting duped it seems.



 Comments   
Comment by md_5 [ 08/Jul/20 ]

Update, follow the instructions

Generated at Sat Dec 13 02:29:12 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.