Package com.tommytony.war.job

Examples of com.tommytony.war.job.PartialZoneResetJob


   * Reset the blocks in this warzone at the speed defined in WarConfig#RESETSPEED.
   * The job will automatically spawn new instances of itself to run every tick until it is done resetting all blocks.
   */
  public void resetBlocksAsJob() {
    try {
      PartialZoneResetJob job = new PartialZoneResetJob(zone, War.war.getWarConfig().getInt(WarConfig.RESETSPEED));
      War.war.getServer().getScheduler().runTask(War.war, job);
    } catch (SQLException e) {
      War.war.getLogger().log(Level.WARNING, "Failed to reset warzone - cannot get count of saved blocks", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.tommytony.war.job.PartialZoneResetJob

Copyright © 2018 www.massapicom. 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.