You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a QOL feature that would make it much easier for plugins to add an "overflow inventory" for items that the player doesn't have enough room for at the time of receiving instead of dropping the item and risk soemone else pick it up / missing it entirely
Describe the solution you'd like.
When an itemstack is added to a player's inventory using inventory.addItem(), if there is anything left in the leftover map, it would be cool to call a form of ItemOverFlowEvent that contains information for the remaining map
Describe alternatives you've considered.
I've not thought of anything that would be as easy to do inside every plugin as this
Other
No response
The text was updated successfully, but these errors were encountered:
I dislike the notation of such an event, especially given the lack of a context API. If handled improperly, it would only break other plugins, which could be dangerously destructive to servers. Plugins do not have mechanisms for seeing the context of what is going on to surmise how they'd be able to handle anything properly.
I have a plugin that takes over some operations to put items into a player's inventory and uses the returned map to implement fallback behaviour, which is relevant to what is going on because I have the context of that.
Is your feature request related to a problem?
This is a QOL feature that would make it much easier for plugins to add an "overflow inventory" for items that the player doesn't have enough room for at the time of receiving instead of dropping the item and risk soemone else pick it up / missing it entirely
Describe the solution you'd like.
When an itemstack is added to a player's inventory using inventory.addItem(), if there is anything left in the leftover map, it would be cool to call a form of ItemOverFlowEvent that contains information for the remaining map
Describe alternatives you've considered.
I've not thought of anything that would be as easy to do inside every plugin as this
Other
No response
The text was updated successfully, but these errors were encountered: