Class FoliaSupport

java.lang.Object
com.iantapply.orchestra.platform.paper.FoliaSupport

public final class FoliaSupport extends Object
Small compatibility layer for Paper and Folia scheduler behavior.
  • Method Details

    • isFolia

      public static boolean isFolia()
      Detects the active scheduler implementation.
      Returns:
      whether Folia's regionized server class is present
    • executeGlobal

      public static void executeGlobal(org.bukkit.plugin.Plugin plugin, Runnable task)
      Executes work through the global-region scheduler available on Paper and Folia.
      Parameters:
      plugin - owning plugin
      task - work to execute