mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-29 20:09:14 +00:00
限制收购
This commit is contained in:
@@ -52,6 +52,7 @@ public class IntegrationManager extends Function {
|
||||
private BlockInterface blockInterface;
|
||||
private PlaceholderManager placeholderManager;
|
||||
private AntiGriefInterface[] antiGriefs;
|
||||
private VaultHook vaultHook;
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
@@ -67,8 +68,9 @@ public class IntegrationManager extends Function {
|
||||
|
||||
YamlConfiguration config = ConfigUtil.getConfig("config.yml");
|
||||
|
||||
if (ConfigManager.vaultHook) {
|
||||
if (!VaultHook.initialize()) {
|
||||
if (ConfigManager.vaultHook && pluginManager.getPlugin("Vault") != null) {
|
||||
vaultHook = new VaultHook();
|
||||
if (!vaultHook.initialize()) {
|
||||
ConfigManager.vaultHook = false;
|
||||
Log.warn("Failed to initialize Vault!");
|
||||
}
|
||||
@@ -235,4 +237,9 @@ public class IntegrationManager extends Function {
|
||||
private void hookMessage(String plugin){
|
||||
AdventureUtil.consoleMessage("[CustomFishing] <white>" + plugin + " Hooked!");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public VaultHook getVaultHook() {
|
||||
return vaultHook;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user