From 2772d8560330180d79b64e56bcfe17814b9f27e0 Mon Sep 17 00:00:00 2001 From: DroppingAnvil Date: Thu, 26 Dec 2019 15:25:47 -0600 Subject: [PATCH] Added check for Discord system during setup. --- src/main/java/com/massivecraft/factions/discord/Discord.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/massivecraft/factions/discord/Discord.java b/src/main/java/com/massivecraft/factions/discord/Discord.java index 1a816557..4db74e5e 100644 --- a/src/main/java/com/massivecraft/factions/discord/Discord.java +++ b/src/main/java/com/massivecraft/factions/discord/Discord.java @@ -61,6 +61,7 @@ public class Discord { } private static Boolean startBot() { + if (!Conf.useDiscordSystem) {return false;} try { jda = new JDABuilder(AccountType.BOT).setToken(Conf.discordBotToken).buildBlocking(); } catch (LoginException | InterruptedException e) {