Package com.palmergames.bukkit.towny
Class TownyTimerHandler
java.lang.Object
com.palmergames.bukkit.towny.TownyTimerHandler
Handler for all running timers
- Author:
- ElgarL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Long
static void
initialize
(Towny plugin) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static void
newHour()
static void
toggleCooldownTimer
(boolean on) static void
toggleDailyTimer
(boolean on) static void
toggleDrawSmokeTask
(boolean on) static void
toggleDrawSpointsTask
(boolean on) static void
toggleHealthRegen
(boolean on) static void
toggleHourlyTimer
(boolean on) static void
toggleMobRemoval
(boolean on) static void
toggleShortTimer
(boolean on) static void
toggleTeleportWarmup
(boolean on) static void
toggleTownyRepeatingTimer
(boolean on)
-
Constructor Details
-
TownyTimerHandler
public TownyTimerHandler()
-
-
Method Details
-
initialize
-
newHour
public static void newHour() -
toggleTownyRepeatingTimer
public static void toggleTownyRepeatingTimer(boolean on) -
toggleMobRemoval
public static void toggleMobRemoval(boolean on) -
toggleDailyTimer
public static void toggleDailyTimer(boolean on) -
toggleHourlyTimer
public static void toggleHourlyTimer(boolean on) -
toggleShortTimer
public static void toggleShortTimer(boolean on) -
toggleHealthRegen
public static void toggleHealthRegen(boolean on) -
toggleTeleportWarmup
public static void toggleTeleportWarmup(boolean on) -
toggleCooldownTimer
public static void toggleCooldownTimer(boolean on) -
toggleDrawSmokeTask
public static void toggleDrawSmokeTask(boolean on) -
toggleDrawSpointsTask
public static void toggleDrawSpointsTask(boolean on) -
isTownyRepeatingTaskRunning
public static boolean isTownyRepeatingTaskRunning() -
isMobRemovalRunning
public static boolean isMobRemovalRunning() -
isHourlyTimerRunning
public static boolean isHourlyTimerRunning() -
isShortTimerRunning
public static boolean isShortTimerRunning() -
isHealthRegenRunning
public static boolean isHealthRegenRunning() -
isTeleportWarmupRunning
public static boolean isTeleportWarmupRunning() -
isCooldownTimerRunning
public static boolean isCooldownTimerRunning() -
isDrawSmokeTaskRunning
public static boolean isDrawSmokeTaskRunning() -
isDrawSpawnPointsTaskRunning
public static boolean isDrawSpawnPointsTaskRunning() -
getTimeUntilNextHourInSeconds
-