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

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


  }

  @EventHandler
  public void onPlayerUpdateUserList(ListPingEvent event) {
    String name = event.getPlayerDisplayName();
    event.getMessages().add(new PlayerListMessage(name, event.getOnline(), (short) event.getPingDelay()));
  }
View Full Code Here


  @Override
  public PlayerListMessage decode(ByteBuf buffer) throws IOException {
    String name = VanillaByteBufUtils.readString(buffer);
    boolean addOrRemove = buffer.readByte() == 1;
    short ping = buffer.readShort();
    return new PlayerListMessage(name, addOrRemove, ping);
  }
View Full Code Here

TOP

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

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.