Archiviert
1
0

Fix discord bot loading

Dieser Commit ist enthalten in:
yoyosource 2022-03-04 23:46:21 +01:00
Ursprung a148b858d6
Commit a0aea29b1b

Datei anzeigen

@ -172,10 +172,12 @@ public class BungeeCore extends Plugin {
@Override @Override
public void onDisable(){ public void onDisable(){
try { if (SteamwarDiscordBotConfig.loaded) {
SteamwarDiscordBot.instance().getJda().shutdown(); try {
} catch (Throwable e) { SteamwarDiscordBot.instance().getJda().shutdown();
getLogger().log(Level.SEVERE, "Could not shutdown discord bot", e); } catch (Throwable e) {
getLogger().log(Level.SEVERE, "Could not shutdown discord bot", e);
}
} }
errorLogger.unregister(); errorLogger.unregister();