Class PlatformSchedulers
java.lang.Object
tech.guilhermekaua.spigotboot.core.spigot.scheduler.PlatformSchedulers
Detects the platform and builds the matching
PlatformScheduler.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PlatformSchedulercreate(@NotNull org.bukkit.plugin.Plugin plugin) Builds the scheduler for the running server.
-
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
-