Shutdown JDA on disable.
This commit is contained in:
parent
29b9eadd57
commit
028734a42c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user