blob: 76a1e6bb8989dfa7eed7a5e28d4a75a5c5a838cc [file] [log] [blame] [raw]
package net.lightstone.msg.handler;
import net.lightstone.model.Player;
import net.lightstone.model.Position;
import net.lightstone.msg.PositionMessage;
import net.lightstone.net.Session;
public final class PositionMessageHandler extends MessageHandler<PositionMessage> {
@Override
public void handle(Session session, Player player, PositionMessage message) {
if (player == null)
return;
player.setPosition(new Position(message.getX(), message.getY(), message.getZ()));
}
}