Class SidebarManager

java.lang.Object
com.andrei1058.spigot.sidebar.SidebarManager

public class SidebarManager extends Object
  • Constructor Details

  • Method Details

    • init

      @Nullable public static @Nullable SidebarManager init()
      Initialize sidebar manager. This will detect your server version.
    • createSidebar

      public Sidebar createSidebar(SidebarLine title, @NotNull @NotNull Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders)
      Create a new sidebar.
      Parameters:
      title - scoreboard title.
      lines - scoreboard lines.
      placeholderProviders - placeholders.
      Returns:
      sb instance.
    • sendHeaderFooter

      public void sendHeaderFooter(org.bukkit.entity.Player player, String header, String footer)
      Set a user header and footer in TAB.
      Parameters:
      player - receiver.
      header - header text.
      footer - footer text.
    • sendHeaderFooter

      public void sendHeaderFooter(org.bukkit.entity.Player player, TabHeaderFooter headerFooter)
    • getPapiSupport

      public PAPISupport getPapiSupport()
    • getSidebarProvider

      public SidebarProvider getSidebarProvider()
    • getInstance

      public static SidebarManager getInstance()