Class FoliaSupport
java.lang.Object
com.iantapply.orchestra.platform.paper.FoliaSupport
Small compatibility layer for Paper and Folia scheduler behavior.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteGlobal(org.bukkit.plugin.Plugin plugin, Runnable task) Executes work through the global-region scheduler available on Paper and Folia.static booleanisFolia()Detects the active scheduler implementation.
-
Method Details
-
isFolia
public static boolean isFolia()Detects the active scheduler implementation.- Returns:
- whether Folia's regionized server class is present
-
executeGlobal
Executes work through the global-region scheduler available on Paper and Folia.- Parameters:
plugin- owning plugintask- work to execute
-