diff --git a/common/src/main/java/com/discordsrv/common/core/module/type/PluginIntegration.java b/common/src/main/java/com/discordsrv/common/core/module/type/PluginIntegration.java index 9389e6bb..95d33116 100644 --- a/common/src/main/java/com/discordsrv/common/core/module/type/PluginIntegration.java +++ b/common/src/main/java/com/discordsrv/common/core/module/type/PluginIntegration.java @@ -43,7 +43,11 @@ public abstract class PluginIntegration
extends AbstractM @Override @MustBeInvokedByOverriders public boolean isEnabled() { - if (discordSRV.config().integrations.disabledIntegrations.contains(getIntegrationName())) { + String integrationName = getIntegrationName(); + if (discordSRV.config().integrations.disabledIntegrations.contains(integrationName)) { + return false; + } + if (!discordSRV.pluginManager().isPluginEnabled(integrationName)) { return false; } return super.isEnabled(); diff --git a/common/src/main/java/com/discordsrv/common/discord/connection/jda/JDAConnectionManager.java b/common/src/main/java/com/discordsrv/common/discord/connection/jda/JDAConnectionManager.java index 0428ade0..53fe8b2e 100644 --- a/common/src/main/java/com/discordsrv/common/discord/connection/jda/JDAConnectionManager.java +++ b/common/src/main/java/com/discordsrv/common/discord/connection/jda/JDAConnectionManager.java @@ -192,7 +192,6 @@ public class JDAConnectionManager implements DiscordConnectionManager { @Subscribe public void onDebugGenerate(DebugGenerateEvent event) { - StringBuilder builder = new StringBuilder(); builder.append("Intents: ").append(intents); builder.append("\nCache Flags: ").append(cacheFlags);