Package org.spout.vanilla.protocol.msg.player.conn

Examples of org.spout.vanilla.protocol.msg.player.conn.PlayerHandshakeMessage


    return new PlayerKickMessage(message);
  }

  @Override
  public Message getIntroductionMessage(String playerName, InetSocketAddress addr) {
    return new PlayerHandshakeMessage((byte) VanillaPlugin.MINECRAFT_PROTOCOL_ID, VanillaPlugin.getInstance().getUsername(), addr.getHostName(), addr.getPort());
  }
View Full Code Here


  public PlayerHandshakeMessage decode(ByteBuf buffer) {
    byte protoVersion = buffer.readByte();
    String username = VanillaByteBufUtils.readString(buffer);
    String hostname = VanillaByteBufUtils.readString(buffer);
    int port = buffer.readInt();
    return new PlayerHandshakeMessage(protoVersion, username, hostname, port);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.player.conn.PlayerHandshakeMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.