From 3c253eaca5a81d252d4ee8d98ad658c319ab6984 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 29 Jul 2021 00:14:28 +0200 Subject: [PATCH] Hotfix BungeeCore --- src/de/steamwar/bungeecore/bot/AuthManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/bot/AuthManager.java b/src/de/steamwar/bungeecore/bot/AuthManager.java index d574c460..e6cfa153 100644 --- a/src/de/steamwar/bungeecore/bot/AuthManager.java +++ b/src/de/steamwar/bungeecore/bot/AuthManager.java @@ -67,7 +67,11 @@ public class AuthManager { member.getUser().openPrivateChannel().complete().sendMessage(builder.build()).complete(); if(member.getNickname() == null) { - member.getGuild().modifyNickname(member, user.getUserName()).complete(); + try { + member.getGuild().modifyNickname(member, user.getUserName()).complete(); + } catch (Exception e) { + // Ignored + } } TOKENS.remove(code); return member;