mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
fix(vault): check vault before checking providers
Because of the new providers hookers, a use of the proviers class was perform before checking if Vault was enabled. And if Vault was not enabled there was a `NoClassDefFoundError`. Now a first Vault check is done before the use of the providers class.
This commit is contained in:
parent
72f745aeb3
commit
8fcbcdd80d
@ -720,11 +720,14 @@ public final class Jobs extends JavaPlugin {
|
|||||||
complement = new Complement1();
|
complement = new Complement1();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HookVault.isVaultEnable()) {
|
||||||
// register economy
|
// register economy
|
||||||
CMIScheduler.get().runTask(() -> new HookEconomyTask(net.milkbowl.vault.economy.Economy.class));
|
CMIScheduler.get().runTask(() -> new HookEconomyTask(net.milkbowl.vault.economy.Economy.class));
|
||||||
|
|
||||||
// register permission from vault
|
// register permission from vault
|
||||||
CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class));
|
CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
dao.loadBlockProtection();
|
dao.loadBlockProtection();
|
||||||
getExploreManager().load();
|
getExploreManager().load();
|
||||||
|
Loading…
Reference in New Issue
Block a user