Package com.andrei1058.spigot.sidebar
Class SidebarManager
java.lang.Object
com.andrei1058.spigot.sidebar.SidebarManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSidebar
(SidebarLine title, @NotNull Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders) Create a new sidebar.static SidebarManager
static @Nullable SidebarManager
init()
Initialize sidebar manager.void
sendHeaderFooter
(org.bukkit.entity.Player player, TabHeaderFooter headerFooter) void
sendHeaderFooter
(org.bukkit.entity.Player player, String header, String footer) Set a user header and footer in TAB.
-
Constructor Details
-
SidebarManager
- Throws:
InstantiationException
-
-
Method Details
-
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.
-
getPapiSupport
-
getSidebarProvider
-
getInstance
-