Active Timers
Check if a timer is active
Overview
The ActiveTimers
class provides a utility for managing active Bukkit tasks in a plugin.
Fields
activeTasks
activeTasks
A map that stores active Bukkit tasks along with their associated plugins.
Methods
isTaskActive
isTaskActive
Checks if a Bukkit task is currently active.
Parameters
task
: The BukkitTask to check.
Returns
boolean
:true
if the task is active,false
otherwise.
Usage
Use the
isTaskActive
method to check if a Bukkit task is currently active.
Example
In this example, we check if a Bukkit task is currently active using the isTaskActive
method.
Last updated