-
Notifications
You must be signed in to change notification settings - Fork 580
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
Writing a book with the inventory full drops it onto the ground #3176
Comments
Realistically I think your only option is to override |
uhm, is there a way to know what called the function? Like, how can I differentiate between a minigame spawning a book (we don't have that, just saying) and people spamming books in the lobby? I should check both |
How exactly would you handle the book's content. In your example of course it's empty, but if a player had a book with content should it just be destroyed because they didn't have an empty inventory slot? |
The base of our server is MTG and books belong to
This is something MTG could do. However, there can also be a case where they initially had a slot and then somehow it got filled whilst they were writing
They get an empty book every time they hit a button. There's creative in the video because I was the one recording (admin), normal users don't have it |
This is possible using
I would recommend giving your minigames an API, say As for what MTG can do, you raise an interesting point: By directly calling It could make sense to add something like a |
In my server people can't drop items in the main area (
register_allow_player_inventory_action
returning0
). However, I'm not sure there is a way I can prevent this from happening (see video below). I think the action should be stopped earlier, somehow. I noticed when a user dropped a lot of empty written books in the areabooks.mp4
The text was updated successfully, but these errors were encountered: