Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder.onClose get reason. #311

Open
N08I40K opened this issue Dec 19, 2023 · 1 comment
Open

builder.onClose get reason. #311

N08I40K opened this issue Dec 19, 2023 · 1 comment

Comments

@N08I40K
Copy link

N08I40K commented Dec 19, 2023

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

@mastercake10
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants