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

Vault/Economy plugin order loading errors. #382

Open
vLuckyyy opened this issue Dec 2, 2024 · 0 comments
Open

Vault/Economy plugin order loading errors. #382

vLuckyyy opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vLuckyyy
Copy link

vLuckyyy commented Dec 2, 2024

Initially, I asked on discord:

image

However, I am a determined person, and this issue kept me up at night. It all started when I began debugging your code, and I discovered that VaultHook wasn't functioning correctly. As I continued debugging, I found an issue: Eco (and EcoJobs) wasn't detecting my plugin in the Economy. After spending some time analyzing the problem, I eventually found the root cause.

The error was in this line:

Explanation:
By default, servers on older versions load plugins alphabetically.

By setting the parameter to STARTUP, your plugin loads first, before the Economy Provider connects to Vault.

You might wonder why not add the STARTUP parameter to the economy plugins as well. Unfortunately, that's not possible, because plugins using PlaceholderAPI in the Economy (like some of the economy plugins) won't be able to register placeholders.

My solution was simply to remove the STARTUP parameter in your plugin. After doing this, everything worked as expected. So, why did you add it? I would like us to work together to find an effective solution.

For example:

  • With my own economy plugin, your plugin doesn't work.
  • With BetterEconomy, it works perfectly.
  • With LiteEco, it doesn't work.
  • With Essentials, it works.
@vLuckyyy vLuckyyy added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant