sidebar
Creates and returns a SidebarHandle using a DSL.
Example usage:
val handle = sidebar(Component.text("My Sidebar")) {
line(0, Component.text("Welcome!"))
line(1) { player -> Component.text("Player: ${player.name}") }
}
handle.show(player)Return
A new SidebarHandle.
Parameters
The title of the sidebar.
The builder block to configure the sidebar.
Creates and returns a SidebarHandle using a DSL with a dynamic title.
Return
A new SidebarHandle.
Parameters
A function providing the title of the sidebar.
The builder block to configure the sidebar.
Creates and returns a SidebarHandle with auto-refresh enabled for the plugin.
Receiver
The plugin instance.
Return
A new SidebarHandle.
Parameters
The title of the sidebar.
The builder block to configure the sidebar.
Creates and returns a SidebarHandle with auto-refresh enabled for the plugin.
Receiver
The plugin instance.
Return
A new SidebarHandle.
Parameters
A function providing the title of the sidebar.
The builder block to configure the sidebar.
Creates and returns a SidebarHandle with a specific refresh interval.
Receiver
The plugin instance.
Return
A new SidebarHandle.
Parameters
The interval at which the sidebar should refresh.
The title of the sidebar.
The builder block to configure the sidebar.
Creates and returns a SidebarHandle with a specific refresh interval and dynamic title.
Receiver
The plugin instance.
Return
A new SidebarHandle.
Parameters
The interval at which the sidebar should refresh.
A function providing the title of the sidebar.
The builder block to configure the sidebar.