[SPIGOT-1532] Item to Offhand event Created: 01/Mar/16  Updated: 14/Mar/16  Resolved: 14/Mar/16

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

Type: New Feature Priority: Minor
Reporter: Tim Biesenbeek Assignee: Unassigned
Resolution: Fixed Votes: 21
Labels: 1.9


 Description   

When you switch a item to your offhand, throw event

i could be blind, but there is now no way of detecting when/if there goes a item to your offhand



 Comments   
Comment by Dominik Dafert [ 09/Mar/16 ]

No, the way how to spawn fireworks doesn't changed in the 1.9.

Comment by Zachary Morris [ 09/Mar/16 ]

is it me, or did the way to spawn fireworks change?

Comment by md_5 [ 09/Mar/16 ]

There have been ~80 commits to CraftBukkit in the last 8 days - be patient.
API changes also require extensive review since they cannot be changed.

Comment by Sebastian Binder [ 09/Mar/16 ]

Is there any update on this or a problem with the PR? Just wondering why there isn't any implementation so far when there already is a PR...

Comment by MinusKube [ 02/Mar/16 ]

Nope this is not ClientSide, I've made a Pull Request to implement this event

Comment by Nathan Wolf [ 02/Mar/16 ]

I've done some testing with InventoryClickEvent and ItemHeldEvent, neither fire in the case of using the offhand shortcut key.

I'm hoping this isn't a clientside thing!

Comment by andrew chi [ 01/Mar/16 ]

Confirmed to not be canceled by InventoryClickEvent

Comment by Sasha [ 01/Mar/16 ]

Yea, there isn't an event that gets called when the play switches items from/to Offhand using the shortcut key.

Comment by Tim Biesenbeek [ 01/Mar/16 ]

It's not triggerd by PlayerItemHeldEvent

Comment by Daniel Mills [ 01/Mar/16 ]

Indeed, it is not.

Comment by Brokkonaut [ 01/Mar/16 ]

Its definitely not calling the InventoryClickEvent when switching an item to the offhand using "swap item in hand"-key (f).

Comment by md_5 [ 01/Mar/16 ]

InventoryClickEvent I imagine

Generated at Sat Dec 13 15:25:20 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.