diff --git a/core/src/main/java/me/mastercapexd/auth/discord/listener/DiscordLinkRoleModifierListener.java b/core/src/main/java/me/mastercapexd/auth/discord/listener/DiscordLinkRoleModifierListener.java index 5d912667..99332864 100644 --- a/core/src/main/java/me/mastercapexd/auth/discord/listener/DiscordLinkRoleModifierListener.java +++ b/core/src/main/java/me/mastercapexd/auth/discord/listener/DiscordLinkRoleModifierListener.java @@ -32,6 +32,8 @@ public void onDiscordLink(AccountLinkEvent e) { LinkType linkType = e.getLinkType(); if (linkType != DiscordLinkType.getInstance()) return; + if (roleModificationSettings.isEmpty()) + return; Optional playerOptional = account.getPlayer(); Guild guild = discordHook.getJDA().getGuildById(guildId);