GlobalEmber
score
Scores kept per objective ("score" when omitted), for the length of the match. A target is a Player (kept by UUID, listed by name) or any name of 1 to 64 characters. At most 64 objectives of 4096 entries each.
Functions
Returns the target's score, 0 when it has none.
Sets the target's score and returns it.
Adds delta (default 1) and returns the new score. Use a negative delta to subtract.
Removes the target from the objective. Returns whether it was there.
Returns the target's 1-based rank, highest first unless ascending; ties go by name. 0 when absent
score.top(limit: number?, objective: string?, ascending: boolean?) -> { ScoreEntry }#Returns up to limit (1..1000, default 10) entries, highest first unless ascending.