Shutdown JDA on disable.

This commit is contained in:
DroppingAnvil 2020-01-14 12:57:09 -06:00 committed by droppinganvil
parent 29b9eadd57
commit 028734a42c

View File

@ -437,6 +437,9 @@ public class FactionsPlugin extends MPlugin {
AutoLeaveTask = null;
}
DiscordListener.saveGuilds();
if (Discord.jda != null) {
Discord.jda.shutdownNow();
}
super.onDisable();
try {
fLogManager.saveLogs();