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> serverPermissions = new HashMap<>();
|
||||||
public static final Map<String, String> commands = new HashMap<>();
|
public static final Map<String, String> commands = new HashMap<>();
|
||||||
|
|
||||||
|
private ErrorLogger errorLogger;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable(){
|
public void onEnable(){
|
||||||
getProxy().registerChannel("sw:bridge");
|
getProxy().registerChannel("sw:bridge");
|
||||||
@ -78,7 +80,7 @@ public class BungeeCore extends Plugin {
|
|||||||
setInstance(this);
|
setInstance(this);
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
new ErrorLogger();
|
errorLogger = new ErrorLogger();
|
||||||
new ConnectionListener();
|
new ConnectionListener();
|
||||||
new Forge();
|
new Forge();
|
||||||
new LabyMod();
|
new LabyMod();
|
||||||
@ -167,6 +169,8 @@ public class BungeeCore extends Plugin {
|
|||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errorLogger.unregister();
|
||||||
Statement.close();
|
Statement.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,10 @@ public class ErrorLogger extends Handler {
|
|||||||
Logger.getLogger("").addHandler(this);
|
Logger.getLogger("").addHandler(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void unregister(){
|
||||||
|
Logger.getLogger("").removeHandler(this);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void publish(LogRecord logRecord) {
|
public void publish(LogRecord logRecord) {
|
||||||
if(logRecord.getLevel().intValue() < Level.WARNING.intValue())
|
if(logRecord.getLevel().intValue() < Level.WARNING.intValue())
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren