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