Package com.palmergames.bukkit.towny.tasks

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


    setChangedNotify(TOGGLE_HEALTH_REGEN);
  }

  public void toggleTeleportWarmup(boolean on) {
    if (on && !isTeleportWarmupRunning()) {
      teleportWarmupTask = getPlugin().getServer().getScheduler().scheduleSyncRepeatingTask(getPlugin(), new TeleportWarmupTimerTask(this), 0, 20);
      if (teleportWarmupTask == -1)
        TownyMessaging.sendErrorMsg("Could not schedule teleport warmup loop.");
    } else if (!on && isTeleportWarmupRunning()) {
      getPlugin().getServer().getScheduler().cancelTask(teleportWarmupTask);
      teleportWarmupTask = -1;
View Full Code Here

TOP

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

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.