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

Add Add & Remove functions to server side item config #1713

Open
Manason opened this issue May 27, 2024 · 0 comments
Open

Add Add & Remove functions to server side item config #1713

Manason opened this issue May 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Manason
Copy link
Contributor

Manason commented May 27, 2024

Is your feature request related to a problem? Please describe.
I want to take actions when a certain item is added or removed from the player's inventory. Currently, I can do so on the client only, but would like to do so on the server.

Describe the solution you'd like
Add/Remove functions being added to the server side of the item config to be invoked when the inventory state is updated and an item is added/removed. I assume this should be possible as the server is state aware of player's inventories.

Describe alternatives you've considered
Using hooks like CreateItem/SwapItem, but I don't think this would cover things like clearing the player inventory.

@Manason Manason added the enhancement New feature or request label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant