#Tab Priority dosent work

1 messages · Page 1 of 1 (latest)

barren jungle
#

Guys i need your help with this tablist so it shows all players but it dosent sort them in by the rank

function tabPriority(p: player):
    set {_rank} to {profile::%{_p}'s uuid%::rank}
    set {_staffRank} to {profile::%{_p}'s uuid%::staffrank}
    if {_rank} is "default":
        set {_t} to team named "k-team"
        set team prefix of team named "k-team" to "&7"
        set team color of {_t} to gray
    if {_staffRank} is set:
        if {_staffRank} is "owner":
            set {_t} to team named "a-team"
            set team prefix of team named "a-team" to "&c"
            set team color of {_t} to light red
        else if {_staffRank} is "co-owner":
            set {_t} to team named "b-team"
            set team prefix of team named "b-team" to "&c"
            set team color of {_t} to light red

function showTab(p: player):
    set {_prefix} to {profile::%{_p}'s uuid%::prefix}
    set {_lvl} to {profile::%{_p}'s uuid%::lvl}
    set {_formatMessage} to "&8[&e%{_lvl}%⚡&8] %{_prefix}%%{_p}%"
    set {_p}'s tablist header to "&e&lSANDBOX %nl%&8(&f%number of all players% Players&8)%nl%"
    set {_p}'s tablist footer to "%nl%&e&lSANDBOX+%nl%&c&l❌ &7You don't have a &e&l⭐&7 Subscription %nl%%nl%&eSandbox.minehut.gg"
    set {_p}'s tablist name to {_formatMessage}
    wait 1 second

candid lynx
#

Like for example

#

GROUPS:owner,staff,default