From 7a4b044d45e497a993a7a4a38844fa2d8ea000ab Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Wed, 17 Jul 2019 12:48:09 -0700 Subject: [PATCH] Check if JDA is on the server. (#139) --- .../me/totalfreedom/totalfreedommod/discord/Discord.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java index 94592439..54d4d8e7 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java @@ -69,6 +69,11 @@ public class Discord extends FreedomService { FLog.warning("Discord verification bot failed to start."); } + catch (NoClassDefFoundError e) + { + FLog.warning("The JDA plugin is not installed, therefore the bot cannot start."); + FLog.warning("To resolve this error, please download JDA from: https://github.com/TFPatches/Minecraft-JDA/releases"); + } } @Override