SteamWar/BungeeCore
Archiviert
13
2

Update some stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-04-22 21:36:55 +02:00
Ursprung b8a3512643
Commit b744f5286f

Datei anzeigen

@ -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
} }
} }
} }