Dieser Commit ist enthalten in:
Ursprung
b8a3512643
Commit
b744f5286f
@ -41,13 +41,12 @@ public class SubserverProtocolFixer extends BasicListener {
|
||||
field = InitialHandler.class.getDeclaredField("extraDataInHandshake");
|
||||
field.setAccessible(true);
|
||||
} catch (Exception e) {
|
||||
BungeeCord.getInstance().stop();
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void loginEvent(LoginEvent e) {
|
||||
System.out.println(e);
|
||||
InitialHandler initialHandler = ((InitialHandler) e.getConnection());
|
||||
LoginResult.Property[] properties = initialHandler.getLoginProfile().getProperties();
|
||||
try {
|
||||
@ -57,7 +56,7 @@ public class SubserverProtocolFixer extends BasicListener {
|
||||
}
|
||||
field.set(initialHandler, extraData);
|
||||
} catch (Exception ex) {
|
||||
BungeeCord.getInstance().stop();
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren