mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-26 12:35:20 +01:00
Don't enable integrations for disabled plugins
This commit is contained in:
parent
fa1b517d5e
commit
b82840bb51
@ -43,7 +43,11 @@ public abstract class PluginIntegration<DT extends DiscordSRV> 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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user