Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
5bcc87aa1e
Commit
33924752c8
@ -71,6 +71,8 @@ public class BungeeCore extends Plugin {
|
||||
public static final Map<String, String> serverPermissions = new HashMap<>();
|
||||
public static final Map<String, String> commands = new HashMap<>();
|
||||
|
||||
private ErrorLogger errorLogger;
|
||||
|
||||
@Override
|
||||
public void onEnable(){
|
||||
getProxy().registerChannel("sw:bridge");
|
||||
@ -78,7 +80,7 @@ public class BungeeCore extends Plugin {
|
||||
setInstance(this);
|
||||
loadConfig();
|
||||
|
||||
new ErrorLogger();
|
||||
errorLogger = new ErrorLogger();
|
||||
new ConnectionListener();
|
||||
new Forge();
|
||||
new LabyMod();
|
||||
@ -167,6 +169,8 @@ public class BungeeCore extends Plugin {
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
errorLogger.unregister();
|
||||
Statement.close();
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,10 @@ public class ErrorLogger extends Handler {
|
||||
Logger.getLogger("").addHandler(this);
|
||||
}
|
||||
|
||||
void unregister(){
|
||||
Logger.getLogger("").removeHandler(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void publish(LogRecord logRecord) {
|
||||
if(logRecord.getLevel().intValue() < Level.WARNING.intValue())
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren