Interface TaskUtils


public interface TaskUtils
Bukkit task utilities.

Provides helpers to query and cancel scheduled tasks by their scheduler ID.

  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static void
    cancelTask(int task)
    Cancels a scheduled task by its ID.
    static boolean
    isTaskRunning(int taskId)
    Checks whether a task is currently running or queued on the Bukkit scheduler.
  • Method Details

    • isTaskRunning

      static boolean isTaskRunning(int taskId)
      Checks whether a task is currently running or queued on the Bukkit scheduler.
      Parameters:
      taskId - the scheduler task ID
      Returns:
      true if the task is running or queued; false otherwise
    • cancelTask

      static void cancelTask(int task)
      Cancels a scheduled task by its ID.
      Parameters:
      task - the scheduler task ID to cancel