AnvilGUI icon indicating copy to clipboard operation
AnvilGUI copied to clipboard

builder.onClose get reason.

Open n08i40k opened this issue 1 year ago • 1 comments

I need to find out why the player closed the inventory, but there is no corresponding method, as in the InventoryCloseEvent event::getReason

n08i40k avatar Dec 19 '23 07:12 n08i40k

As for now, this is not possible. To make this work, I think we need to pass the underlying InventoryCloseEvent to the onClose method, either in the stateSnapshot or as a new, optional parameter. We can't work with the Reason (as in just passing the Reason instead of the Event) since it seems to be a Paper only method.

mastercake10 avatar Dec 19 '23 09:12 mastercake10