diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 2867177f..7dd3761a 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -720,11 +720,14 @@ public final class Jobs extends JavaPlugin { complement = new Complement1(); } - // register economy - CMIScheduler.get().runTask(() -> new HookEconomyTask(net.milkbowl.vault.economy.Economy.class)); + if (HookVault.isVaultEnable()) { + // register economy + CMIScheduler.get().runTask(() -> new HookEconomyTask(net.milkbowl.vault.economy.Economy.class)); + + // register permission from vault + CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class)); + } - // register permission from vault - CMIScheduler.get().runTask(() -> new HookPermissionTask(Permission.class)); dao.loadBlockProtection(); getExploreManager().load();