Examples of canLogout()


Examples of org.moparscape.msc.gs.model.Player.canLogout()

          }
        });
        break;
      case 316: // Ruby ammy
      case 317: // Diamond ammy
        if (!player.canLogout()
            || System.currentTimeMillis() - player.getLastMoved() < 10000) {
          player.getActionSender()
              .sendMessage(
                  "You must stand peacefully in one place for 10 seconds!");
          return;
View Full Code Here

Examples of org.moparscape.msc.gs.model.Player.canLogout()

   */
  public static final World world = Instance.getWorld();

  public void handlePacket(Packet p, IoSession session) throws Exception {
    Player player = (Player) session.getAttachment();
    if (player.canLogout()) {
      player.destroy(true, true);
    } else {
      player.getActionSender().sendCantLogout();
    }
  }
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.