public void func_147326_c() { if (!this.field_147337_i.isComplete()) { UUID var1 = UUID.nameUUIDFromBytes(("OfflinePlayer:" + this.field_147337_i.getName()).getBytes(Charsets.UTF_8)); this.field_147337_i = new GameProfile(var1.toString().replaceAll("-", ""), this.field_147337_i.getName()); } String var2 = this.field_147327_f.getConfigurationManager().func_148542_a(this.field_147333_a.getSocketAddress(), this.field_147337_i); if (var2 != null) { this.func_147322_a(var2); } else { this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED; this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]); this.field_147327_f.getConfigurationManager().initializeConnectionToPlayer(this.field_147333_a, this.field_147327_f.getConfigurationManager().func_148545_a(this.field_147337_i)); } }
public void func_147326_c() { // Spigot start - Moved to initUUID /* if (!this.field_147337_i.isComplete()) { this.field_147337_i = this.func_152506_a(this.field_147337_i); } */ // Spigot end // CraftBukkit start - fire PlayerLoginEvent EntityPlayerMP s = this.field_147327_f.getConfigurationManager().attemptLogin(this, this.field_147337_i, this.hostname); if (s == null) { // this.func_147322_a(s); // CraftBukkit end } else { this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED; this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]); FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().processLogin(this.field_147337_i, s)); // CraftBukkit - add player reference } }
public void func_147326_c() { if (!this.field_147337_i.isComplete()) { this.field_147337_i = this.func_152506_a(this.field_147337_i); } String s = this.field_147327_f.getConfigurationManager().allowUserToConnect(this.field_147333_a.getSocketAddress(), this.field_147337_i); if (s != null) { this.func_147322_a(s); } else { this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED; this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]); FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().createPlayerForUser(this.field_147337_i)); } }
public void tryAcceptPlayer() { if (!this.loginGameProfile.isComplete()) { this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile); } String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile); if (s != null) { this.closeConnection(s); } else { this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED; if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel()) { this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener() { public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception { NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold()); } }, new GenericFutureListener[0]); } this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile)); EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId()); if (entityplayermp != null) { this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT; this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile); } else { this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile)); } } }
public void handleLoginSuccess(S02PacketLoginSuccess packetIn) { this.gameProfile = packetIn.getProfile(); this.networkManager.setConnectionState(EnumConnectionState.PLAY); this.networkManager.setNetHandler(new NetHandlerPlayClient(this.mc, this.previousGuiScreen, this.networkManager, this.gameProfile)); }
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_) { this.field_147393_d.setConnectionState(EnumConnectionState.PLAY); }
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_) { FMLNetworkHandler.fmlClientHandshake(this.field_147393_d); }
@Override public Class<? extends Packet> getPacket() { return S02PacketLoginSuccess.class; }
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
void handleLoginSuccess(S02PacketLoginSuccess var1);
void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_);