Package games.stendhal.server.core.engine

Examples of games.stendhal.server.core.engine.StendhalRPZone.storeToDatabase()


    super.close();
    SingletonRepository.getTurnNotifier().dontNotify(chestListener);
    StendhalRPZone zone = this.getZone();
    if (zone != null) {
      logger.debug("Storing chest in zone " + zone.getName() + " with " + getSlot("content").size() + " items.");
      zone.storeToDatabase();
    } else {
      logger.error("Closing StoredChest which is in no zone.");
    }
  }
View Full Code Here


     */
    public void onTurnReached(final int currentTurn) {
      StendhalRPZone zone = getZone();
      if (zone != null) {
        logger.info("Storing chest in zone " + zone.getName() + " with " + getSlot("content").size() + " items while it's open.");
        zone.storeToDatabase();
      }
      if (chestCloser()) {
        SingletonRepository.getTurnNotifier().notifyInSeconds(60, this);
      }
    }
View Full Code Here

   * Save the zone (and the portal along it)
   */
  private void saveToDatabase() {
    StendhalRPZone zone = this.getZone();
    if (zone != null) {
      zone.storeToDatabase();
    }
  }
}
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.