Solved Tablist Sort

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Sweball77

New Member
May 19, 2024
5
0
1
24
Skript:
on join:
wait 2 seconds
if {Ranks::%player's uuid%} isn't set:
set {Ranks::%player's uuid%} to "Member"
loop all players:
if {Ranks::%loop-player's uuid%} is "Owner":
set loop-player's tablist name to " &a&l%{Ranks::%loop-player's uuid%}% &f%loop-player's name%"
else:
set loop-player's tablist name to "&a&l%{Ranks::%loop-player's uuid%}% &f%loop-player's name%

I have already set the ranks stuff but basically, is it possible to set the player with owner rank to the tob of the tablist and those with other ranks to the bottom using only skript?