Examples of PlayerHandshakeMessage


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

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

  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
Copyright © 2018 www.massapi.com. 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.