Interface RestartingTask


public interface RestartingTask
The RestartingTask interface represents a task that handles the restarting process of a game in a BedWars arena.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the task.
    Get the arena associated with the task.
    org.bukkit.scheduler.BukkitTask
    Get the BukkitTask associated with the task.
    int
    Get the remaining time for the restarting process.
    int
    Get the task ID of the task.
  • Method Details

    • getArena

      IArena getArena()
      Get the arena associated with the task.
      Returns:
      The arena object.
    • getBukkitTask

      org.bukkit.scheduler.BukkitTask getBukkitTask()
      Get the BukkitTask associated with the task.
      Returns:
      The BukkitTask object.
    • getTask

      int getTask()
      Get the task ID of the task.
      Returns:
      The task ID.
    • getRestarting

      int getRestarting()
      Get the remaining time for the restarting process.
      Returns:
      The remaining time in seconds.
    • cancel

      void cancel()
      Cancel the task.