ProtocolSidebar
Non-flickering scoreboard (sidebar) implementation using ProtocolLib. Also supports ViaVersion.
POM snippet:
<dependency>
<groupId>me.catcoder</groupId>
<artifactId>bukkit-sidebar</artifactId>
<version>LATEST_VERSION</version>
</dependency>
Example usage
Sidebar sidebar = new Sidebar(owner, "objective", "§2title");
sidebar.addLine("§aStatic line");
sidebar.addLine("Lines longer than 32 characters will be automatically truncated if player version is < 1.13");
sidebar.addLine(player -> "EXP: " + player.getExp());
sidebar.addViewer(player);
//...
// update all dynamic lines
sidebar.update();