Class SpigotSchedulerConfiguration

java.lang.Object
tech.guilhermekaua.spigotboot.core.spigot.scheduler.SpigotSchedulerConfiguration

public class SpigotSchedulerConfiguration extends Object
Registers the platform PlatformScheduler. Guarded by @ConditionalOnMissingBean so a plugin may register its own implementation.
  • Constructor Details

    • SpigotSchedulerConfiguration

      public SpigotSchedulerConfiguration()
  • Method Details

    • platformScheduler

      public PlatformScheduler platformScheduler(org.bukkit.plugin.Plugin plugin)
      Parameters:
      plugin - the host plugin
      Returns:
      the PlatformScheduler for the running server — Folia-aware when the modern scheduler API is present, otherwise a legacy Bukkit-backed implementation