[PLUG-142] [MC 1.9.2] PlayerBucketEmptyEvent.setItemStack(ItemStack) not doing anything Created: 04/Apr/16  Updated: 25/May/16  Resolved: 25/May/16

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

Type: Bug Priority: Minor
Reporter: detig_iii Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: bug, event, playerinteractevent, plugin

Attachments: Java Source File Main.java    

 Description   

When an ItemStack is assigned to a PlayerBucketEmptyEvent via setItemStack(ItemStack) the ItemStack can be recalled with PlayerBucketEmptyEvent.getItemStack() but when the method is done and the event result is applied it ignores whatever item is set and just puts an empty bucket in the player's hand. You can try this with any code you like, it won't work under any circumstances.

For convenience's sake I'll just attach my own class where the error happened. I have a workaround by cancelling the event and then simulate the event by hand placing the water and putting the item in the hand, but this should of course not be necessary and most likely can cause bugs in certain circumstances.


Generated at Sat Dec 13 04:23:21 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.