mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-05 04:44:05 +00:00
Fix NPE during reload with invalid discord bot tokens (#4417)
This commit is contained in:
parent
17e026f9aa
commit
90828965df
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue