Package org.spout.vanilla.component.entity.player

Examples of org.spout.vanilla.component.entity.player.Ping.response()


public class PlayerPingHandler extends MessageHandler<PlayerPingMessage> {
  @Override
  public void handleServer(ServerSession session, PlayerPingMessage message) {
    Ping ping = session.getPlayer().get(Ping.class);
    if (ping != null) {
      ping.response(message.getPingId());
    }
  }

  @Override
  public void handleClient(ClientSession session, PlayerPingMessage message) {
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.