[SPIGOT-2111] Player#getInventory()#setItemInOffHand(ItemStack) doesn't work. Created: 01/Apr/16  Updated: 11/Dec/17  Resolved: 01/Apr/16

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

Type: Bug Priority: Minor
Reporter: Gael Rial Costas Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: 1.9, Craftbukkit, bug


 Description   

Hi. Today I was proggraming and I wanted add an ItemStack in a player's off hand, but when I used the method Player#getInventory()#setItemInOffHand(ItemStack), nothing happens.

But Player#getInventory()#setItemInOffHand(null) works, because it removes a item in a player's off hand!



 Comments   
Comment by Gael Rial Costas [ 01/Apr/16 ]

Hi. It's not working for me. What's the problem?
http://prntscr.com/amzw1j

Generated at Tue Apr 22 04:30:17 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.