RegisteredServiceProvider<Economy> provider = Bukkit.getServer().getServicesManager().getRegistration(Economy.class);
if (provider != null) {
Economy economy = provider.getProvider();
if (economy != null && economy.isEnabled()) {
Jobs.setEconomy(plugin, new VaultEconomy(economy));
Jobs.getPluginLogger().info("["+plugin.getDescription().getName()+"] Successfully linked with Vault.");
return;
}
}
}