9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 02:49:11 +00:00
This commit is contained in:
Xiao-MoMi
2023-05-05 19:36:29 +08:00
parent 9774c73507
commit ab06df861d
22 changed files with 321 additions and 83 deletions

View File

@@ -54,6 +54,7 @@ public class IntegrationManager extends Function {
private ItemInterface[] itemInterfaces;
private SeasonInterface seasonInterface;
private final PluginManager pluginManager;
private VaultHook vaultHook;
private final PlaceholderManager placeholderManager;
public IntegrationManager(CustomCrops plugin) {
@@ -61,6 +62,12 @@ public class IntegrationManager extends Function {
this.pluginManager = Bukkit.getPluginManager();
this.placeholderManager = new PlaceholderManager(plugin);
this.registerQuests();
if (Bukkit.getPluginManager().isPluginEnabled("Vault")) {
this.vaultHook = new VaultHook();
if (!vaultHook.initialize()) {
AdventureUtils.consoleMessage("<red>[CustomCrops] Failed to initialize Vault");
}
}
}
@Override
@@ -181,4 +188,9 @@ public class IntegrationManager extends Function {
public PlaceholderManager getPlaceholderManager() {
return placeholderManager;
}
@Nullable
public VaultHook getVault() {
return vaultHook;
}
}