PartyPlaceholderSnapshot

public final class PartyPlaceholderSnapshot

Immutable per-viewer copies of party state for PlaceholderAPI, which scoreboard plugins often call off the main thread. The main thread rebuilds it every second from the party sidebar task and after every roster change, so placeholders never touch the party maps or Bukkit entities themselves.

Types

Link copied to clipboard
public final class MemberView extends Record
One member, leader first, with the line the viewer's party sidebar would show.
Link copied to clipboard
public final class PartyView extends Record

Functions

Link copied to clipboard
public static PartyPlaceholderSnapshot.PartyView get(UUID viewerId)
The viewer's party, or null when they are not in one.