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

Problems with Vault #150

Open
Mihanoks opened this issue Dec 10, 2022 · 3 comments
Open

Problems with Vault #150

Mihanoks opened this issue Dec 10, 2022 · 3 comments

Comments

@Mihanoks
Copy link

I'm new to plugin development and I'm trying to create my first plugin. I have a problem with using economic methods. Please help
Code: https://github.com/Mihanoks/WorldBank
Error: latest.log

@Geolykt
Copy link
Contributor

Geolykt commented Dec 10, 2022

A) This is not really a support forum
B) That repository does not seem to be public
C) Guessing from the error message there is a single possible causes:
1. You are programming an economy provider but did not register your economy to vault (or at least not at that point)
2. You are programming an economy consumer but there is no economy provider present

3. You are programming an economy consumer but all economy providers are loading after your plugin; Consider using the ServiceRegisterEvent to determine the currently active economy instead of the code currently present in the documentation.

@Mihanoks
Copy link
Author

Sorry, I forgot to make it public, now the repository is public

@Geolykt
Copy link
Contributor

Geolykt commented Dec 10, 2022

Yeah then the issue is exactly what I thought it was. You should use the ServiceRegisterEvent to obtain the economy.

Don't ask for examples though, very few plugins actually use that because few know that that event actually exists.
And it's a bit harder to implement I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants