SteamWar/BungeeCore
Archiviert
13
2

Hotfix BungeeCore

Dieser Commit ist enthalten in:
yoyosource 2021-07-29 00:18:39 +02:00
Ursprung 3c253eaca5
Commit 3394968b9e

Datei anzeigen

@ -31,6 +31,7 @@ import de.steamwar.bungeecore.listeners.mods.WorldDownloader;
import de.steamwar.bungeecore.sql.SQL; import de.steamwar.bungeecore.sql.SQL;
import de.steamwar.bungeecore.sql.SteamwarUser; import de.steamwar.bungeecore.sql.SteamwarUser;
import de.steamwar.bungeecore.sql.Team; import de.steamwar.bungeecore.sql.Team;
import net.dv8tion.jda.api.JDA;
import net.md_5.bungee.api.ChatMessageType; import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.ProxyServer;
@ -158,6 +159,11 @@ public class BungeeCore extends Plugin {
ErrorLogger.stop(); ErrorLogger.stop();
SQL.close(); SQL.close();
SteamwarDiscordBot.instance().getJda().shutdownNow(); SteamwarDiscordBot.instance().getJda().shutdownNow();
try {
SteamwarDiscordBot.instance().getJda().awaitStatus(JDA.Status.SHUTDOWN);
} catch (Exception e) {
// Ignored
}
} }
public static BungeeCore get() { public static BungeeCore get() {