-
Notifications
You must be signed in to change notification settings - Fork 49
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
hide_inventory: true/false #27
Comments
We need some more clarifications on what exactly you're trying to achieve here. I can think of 2 things you might be saying:
|
yeah i was talking about the second option :/ |
The "easiest" way which would avoid any issues would be, in my opinion, to send an inventory packet to the player to make it seem like his inventory is empty. And then, when the menu is closed, use Player#updateInventory() and Spigot will send back the player's inv as if nothing happened. That way, we don't need to store the player's inv nor fear any unfortunate accident with potential server crashes and stuff. We'd need to rely on NMS though |
Basically
hide_inventory: true/false
if you want to hide a user's inventory (items) when they open a menu, so everything looks more nice and clearThe text was updated successfully, but these errors were encountered: