Sorting Tablists

  • Thread starter Deleted member 5254
  • Start date
  • 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 community!

    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!

Status
Not open for further replies.
D

Deleted member 5254

Hello

I am trying to sort my tablist. For example, I want owners to show up on top, then staff, then donators, then other players.

LimeGlass told me to put &1&r infront of the rank (1 being the highest) and then &2&r for the next.
But that seems to be doing nothing.

So this is what I have done so far... This is just a shorter sample of my actual skript just to show you what i have going so far.

code_language.skript:
every second:
    loop all players:
        set {_bal} to the balance of loop-player
        set {_ptime} to placeholder "%%player_world_time_12%%" from loop-player
        set tab header to "&bLost&3MC\n&7play.lostmc.org\n&a&m=========================" and footer to "&a&m=========================\n&r&6&lWebsite:&b&l www.lostmc.org\n&6&lBalance: &b%{_bal}%\n&6&lTime: &b%{_ptime}%" for loop-player

on join:
    if player has permission "tablist.staff":
        set the player's display name to "&1&r[&fSTAFF&r] %player%"
        set tablist name of player to "&1&r[&fSTAFF&r] %player%"
    if player has permission "tablist.donator":
        set the player's display name to "&2&r[&7DONATOR&r] %player%"
        set tablist name of player to "&3&r[&7DONATOR&r] %player%"
    if player has permission "tablist.player":
        set the player's display name to "&3&r[&8PLAYER&r] %player%"
        set tablist name of player to "&3&r[&8PLAYER&r] %player%"

Im running spigot 1.12.2
Skript Bensku 2.2 dev 34
Skellett 1.9.6b (TablistAPI set to TRUE in config)
TablistAPI 1.1.2


If anyone can help with this I would really appreciate it :emoji_slight_smile:
 
Last edited by a moderator:
Status
Not open for further replies.