Shutdown JDA on disable.
This commit is contained in:
parent
29b9eadd57
commit
028734a42c
@ -437,6 +437,9 @@ public class FactionsPlugin extends MPlugin {
|
|||||||
AutoLeaveTask = null;
|
AutoLeaveTask = null;
|
||||||
}
|
}
|
||||||
DiscordListener.saveGuilds();
|
DiscordListener.saveGuilds();
|
||||||
|
if (Discord.jda != null) {
|
||||||
|
Discord.jda.shutdownNow();
|
||||||
|
}
|
||||||
super.onDisable();
|
super.onDisable();
|
||||||
try {
|
try {
|
||||||
fLogManager.saveLogs();
|
fLogManager.saveLogs();
|
||||||
|
Loading…
Reference in New Issue
Block a user