geforkt von SteamWar/BungeeCore
Better encapsulation
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
c3c666c305
Commit
ef8928d3bd
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren