BukkitMainThreadDispatcher

constructor(plugin: Plugin, tickRate: Long)(source)

Parameters

plugin

The plugin instance to use for scheduling tasks. If the plugin is disabled, the dispatcher will not execute any tasks.

tickRate

The tick rate to use for scheduling tasks. This determines how often the dispatcher checks for tasks to execute. Measured in ticks.