From e978d7f0ca9aa342b516415dc066bf8f2bd21011 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 29 Jul 2021 00:10:44 +0200 Subject: [PATCH] Hotfix DiscordRanks --- src/de/steamwar/bungeecore/bot/util/DiscordRanks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/bot/util/DiscordRanks.java b/src/de/steamwar/bungeecore/bot/util/DiscordRanks.java index 9b976cef..dedf0a56 100644 --- a/src/de/steamwar/bungeecore/bot/util/DiscordRanks.java +++ b/src/de/steamwar/bungeecore/bot/util/DiscordRanks.java @@ -60,7 +60,7 @@ public class DiscordRanks { guild.removeRoleFromMember(member, role).complete(); } - if (!needed.isEmpty()) { + if (needed != null && !needed.isEmpty()) { guild.addRoleToMember(member, guild.getRoleById(needed)).complete(); } }