Examples of unregisterPlayer()


Examples of org.moparscape.msc.ls.model.World.unregisterPlayer()

public class PlayerLogoutHandler implements PacketHandler {

  public void handlePacket(Packet p, IoSession session) throws Exception {
    long user = p.readLong();
    World world = (World) session.getAttachment();
    world.unregisterPlayer(user);
  }
}
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.