Class PlatformSchedulers

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

public final class PlatformSchedulers extends Object
Detects the platform and builds the matching PlatformScheduler.
  • Method Details

    • create

      @NotNull public static @NotNull PlatformScheduler create(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Builds the scheduler for the running server.
      Parameters:
      plugin - the owning plugin
      Returns:
      a Folia scheduler when the modern scheduler API is present, else a legacy one