Skip to content

Handle large LuckPerms group weights correctly in tablist ordering #18

Description

@simplecloud-vercel-github

Problem

A prefix plugin that uses LuckPerms group weights to determine tablist order produces an incorrect order when groups use very large weights.

Expected behavior

Players should be ordered consistently by their configured LuckPerms group weights, including large values. A higher weight should take precedence over a lower weight.

Actual behavior

With a group weight of 9999 and another group weight of 1000, the tablist order was incorrect. A player whose group weight was 0 appeared in the expected position.

Reproduction details

  1. Configure the prefix plugin to use LuckPerms group weights for tablist ordering.
  2. Assign one group a weight of 9999 and another a weight of 1000.
  3. Assign players to those groups and inspect the tablist order.
  4. Observe that the ordering does not follow the configured weights.

Observed workaround

Reducing the group weights to values around 100 made the ordering work as expected.

Acceptance criteria

  • Tablist ordering correctly respects LuckPerms group weights across the supported weight range.
  • Large weights do not result in an incorrect sort order.
  • Any supported weight limits or ordering caveats are documented.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions