BungeeTasksModule

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val description: ModuleDescription

The module description. This is used to get information about the module.

Link copied to clipboard
val scheduler: TaskScheduler

BungeeCord Scheduler

Functions

Link copied to clipboard
open override fun onDisable()

This method is called when the module is unloaded.

Link copied to clipboard
open override fun onEnable()

This method is called when the module is loaded.

Link copied to clipboard
fun runAsync(delay: Int = 1, task: () -> Unit): ScheduledTask

Runs an async task after the specified delay in ticks

Link copied to clipboard
fun runAsyncRepeating(delay: Int = 1, period: Int = 1, task: () -> Unit): RecurringTask

Runs a repeating task asynchronously every given ticks (1 tick = 0.05 seconds) after the given ticks (1 tick = 0.05 seconds)