Download Ordered Player List — Minecraft Mods — MetaMods
Ordered Player List

Ordered Player List

Active

Downloads

0

Last update

4 months ago

Versions

1.19 — 1.21.9
Server
Fabric
Quilt
Libraries
Control
Utils

Ordered Player List

Configuration

{
  // Interval for checking and updating order in ticks
  "updateRate": 5,
  // Display prefix metadata above the player
  "displayPrefix": true,
  // Display suffix metadata above the player
  "displaySuffix": true,
  // List of comparison criteria applied from top to bottom
  // In this example, rank weight is checked first, then players with same weight are sorted by playtime...
  "order": [
    {
      "key": "weight",
      "reversed": true,
      "mode": "integer",
      "type": "metadata"
    },
    {
      "placeholder": "player:statistic",
      "argument": "play_time",
      "reversed": true,
      "mode": "integer",
      "type": "placeholder"
    },
    {
      "placeholder": "player:pos_y",
      "reversed": false,
      "mode": "double",
      "type": "placeholder"
    },
    {
      "placeholder": "player:statistic",
      "argument": "deaths",
      "reversed": false,
      "mode": "integer",
      "type": "placeholder"
    },
    {
      "placeholder": "player:name",
      "reversed": false,
      "mode": "string",
      "type": "placeholder"
    }
  ]
}

(Parameters displayPrefix and displaySuffix have been removed in all versions for Minecraft 1.21.2 and higher.)

Comparison System

Comparison criteria allow determining how players should be ordered in the list. They are applied sequentially from top to bottom. This means that if a comparison yields the same result for two players, the next criterion will be used to determine the order.

Sometimes it's useful to interpret data as integers or floating-point numbers instead of string comparisons. Parsing modes tell the mod how to process the string to apply the correct comparison method. Available parsing modes are: integer, string, double, long, and boolean!

Currently, two types of comparisons are available:

Metadata

Useful for comparing players based on metadata from mods like LuckPerms

{
  // Metadata key to check
  "key": "<key>",
  // Whether to reverse the comparison
  "reversed": false,
  // Parsing mode
  "mode": "<mode>",
  "type": "metadata"
}

Placeholders

Allows comparing players using placeholders

{
  // Placeholder identifier (without %)
  "placeholder": "<placeholder>",
  // Optional argument for placeholders
  "argument": "<argument>",
  // Whether to reverse the comparison
  "reversed": false,
  // Parsing mode
  "mode": "<mode>",
  "type": "placeholder"
}
Project members
DrexHD

DrexHD

Developer

Created: 17 Aug 2023

ID: 9821