Examples of RepeatingTimerTask


Examples of com.palmergames.bukkit.towny.tasks.RepeatingTimerTask

    setChangedNotify(NEW_DAY);
  }

  public void toggleTownyRepeatingTimer(boolean on) {
    if (on && !isTownyRepeatingTaskRunning()) {
      townyRepeatingTask = getPlugin().getServer().getScheduler().scheduleSyncRepeatingTask(getPlugin(), new RepeatingTimerTask(this), 0, MinecraftTools.convertToTicks(TownySettings.getPlotManagementSpeed()));
      if (townyRepeatingTask == -1)
        TownyMessaging.sendErrorMsg("Could not schedule Towny Timer Task.");
    } else if (!on && isTownyRepeatingTaskRunning()) {
      getPlugin().getServer().getScheduler().cancelTask(townyRepeatingTask);
      townyRepeatingTask = -1;
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.