Archiviert
1
0

Better encapsulation

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-01 10:41:58 +02:00
Ursprung c3c666c305
Commit ef8928d3bd

Datei anzeigen

@ -159,7 +159,7 @@ public class BungeeCore extends Plugin {
if (SteamwarDiscordBotConfig.loaded) { if (SteamwarDiscordBotConfig.loaded) {
try { try {
new SteamwarDiscordBot(); new SteamwarDiscordBot();
} catch (Exception e) { } catch (Throwable e) {
getLogger().log(Level.SEVERE, "Could not initialize discord bot", e); getLogger().log(Level.SEVERE, "Could not initialize discord bot", e);
} }
} }
@ -172,7 +172,7 @@ public class BungeeCore extends Plugin {
SteamwarDiscordBot.instance().getJda().awaitStatus(JDA.Status.SHUTDOWN); SteamwarDiscordBot.instance().getJda().awaitStatus(JDA.Status.SHUTDOWN);
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} catch (Exception e) { } catch (Throwable e) {
getLogger().log(Level.SEVERE, "Could not shutdown discord bot", e); getLogger().log(Level.SEVERE, "Could not shutdown discord bot", e);
} }