A Minecraft library for creating sidebars.
Get the latest release and place it in your server.
- BrickPlaceholders
- BrickNametags (spigot only)
You can change the settings in the config.json
.
Change the update speed (delay between updates of placeholders) in milliseconds.
{
"updateSpeed": "250"
}
Give a default sidebar to the players on join, uses minimessage format.
{
"defaultSidebar": {
"title": "<yellow>WELCOME",
"lines": [
"",
"<rainbow>RAINBOWS!</rainbow>",
""
]
}
}
repositories {
maven { url "https://repo.jorisg.com/snapshots" }
}
dependencies {
// minestom
compileOnly 'com.guflimc.brick.sidebar:minestom-api:+'
// spigot
compileOnly 'com.guflimc.brick.sidebar:spigot-api:+'
}
You can find the javadocs for all platforms here
The API works with layering, multiple extensions can push a sidebar, the latest one will be shown to the player. The top sidebar can later be removed and the player will see the underlying sidebar.
Sidebar sidebar = new Sidebar(Component.text("title"));
sidebar.appendLines(Component.text("multi"), Component.text("line"), Component.text("text!"));
SpigotSidebarAPI.get().push(player, sidebar);
SpigotSidebarAPI.get().pop(player);
SpigotSidebarAPI.get().remove(player, sidebar);