Skip to content

Commit

Permalink
Ignore AccountLinkEvent if roleModificationSettings is empty in Disco…
Browse files Browse the repository at this point in the history
…rdLinkRoleModifierListener
  • Loading branch information
bivashy committed Aug 3, 2023
1 parent bb39ebc commit b1fc5b9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public void onDiscordLink(AccountLinkEvent e) {
LinkType linkType = e.getLinkType();
if (linkType != DiscordLinkType.getInstance())
return;
if (roleModificationSettings.isEmpty())
return;
Optional<ServerPlayer> playerOptional = account.getPlayer();

Guild guild = discordHook.getJDA().getGuildById(guildId);
Expand Down

0 comments on commit b1fc5b9

Please sign in to comment.