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

buyItem hook without can afford check #1810

Open
Skryptific opened this issue Sep 25, 2024 · 0 comments
Open

buyItem hook without can afford check #1810

Skryptific opened this issue Sep 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Skryptific
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am using the buyItem hook to create wholesale orders which then, after some time, get added to a certain stash. Players with certain permissions can purchase items through the shops ui and in the hook I am removing the money from the group account and return false eventually. The problem I am facing is that you need the required amount of money in your inventory before the buyItem hook triggers.

Describe the solution you'd like
Moving the canAfford functionality after the buyItem hook. Not sure if things will break due to the complexity, hence the question first.

Describe alternatives you've considered
Just letting it be, forcing players to use money instead of an account. Or telling them to have it in their inventory, but not an ideal solution.

@Skryptific Skryptific added the enhancement New feature or request label Sep 25, 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