VitalPlayerScoreboard
class VitalPlayerScoreboard(title: Function<SpigotPlayer, String>, lines: Function<SpigotPlayer, String>)
Defines a per-player based scoreboard implementation within the Vital-Framework. Per-played scoreboards should be used when displaying data, that is tied to a specific player on the server.
@Bean
public VitalPlayerScoreboard myPlayerScoreboard() {
return new VitalPlayerScoreboard(
player -> "Title for player " + player.getName(),
player -> "Line 1 for " + player.getName(),
player -> "Line 2 for " + player.getName(),
player -> "Line 3 for " + player.getName()
);
}Content copied to clipboard