CodeCrafter47 / BungeeTabListPlus

GNU General Public License v3.0
144 stars 69 forks source link

Can't use custom placeholders in playerOrder #643

Closed untuned closed 3 years ago

untuned commented 3 years ago

I have a custom placeholder defined like so:

factionrank:
  !switch
  expression: ${viewer factionsuuid_player_role_name}
  replacements:
    "admin": "Owner"
    "coleader": "Co-Leader"
    "moderator": "Officer"
    "normal member": "Member"
    "recruit": "Recruit"

When trying to use playerOrder to sort them, I get this warning in console:

[06:04:33 WARN] [BungeeTabListPlus]: There have been 1 warnings while loading plugins/BungeeTabListPlus/tabLists/factions.yml
WARNING: Unknown placeholder in playerOrder option: `factionrank custom Owner Co-Leader Officer Member Recruit`
 in 'reader', line 843, column 26:
                playerOrder: "factionrank custom Owner Co-Lea ... 
                             ^
CodeCrafter47 commented 3 years ago

It is not possible to use custom placeholders in the player order option. There are no plans to change this.

untuned commented 3 years ago

It is not possible to use custom placeholders in the player order option. There are no plans to change this.

Understandable, thank you for the reply.

Andre601 commented 3 years ago

You can use custom followed by the values to order to sort by to achieve this.

Example: playerOrder: 'vault_primary_group custom headadmin admin vip default'

Only works with existing placeholders