Package com.palmergames.bukkit.towny.tasks

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

Related Classes of com.palmergames.bukkit.towny.tasks.RepeatingTimerTask

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.