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) {