mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Fix NPE during reload with invalid discord bot tokens (#4417)
This commit is contained in:
parent
17e026f9aa
commit
90828965df
@ -140,6 +140,7 @@ public class JDADiscordService implements DiscordService {
|
||||
|
||||
logger.log(Level.INFO, tl("discordLoggingIn"));
|
||||
if (plugin.getSettings().getBotToken().replace("INSERT-TOKEN-HERE", "").trim().isEmpty()) {
|
||||
invalidStartup = true;
|
||||
throw new IllegalArgumentException(tl("discordErrorNoToken"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user