1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Tab Skripts

Discussion in 'Skript' started by [Why is this here] fdsfd, Apr 28, 2019.

Thread Status:
Not open for further replies.
  1. [Why is this here] fdsfd

    Joined:
    Apr 6, 2019
    Messages:
    21
    Likes Received:
    0
    THIS IS NOT A REQUEST

    I'm a skripter and need to create a TabList skript. I checked the resources, needs an addon that I can't get. Checked the docs, couldn't find anything. A bit of help here?
     
  2. Best Answer:
    Post #2 by couger44, Apr 29, 2019
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    TabList? It is simple to do:
    Code (Skript):
    1.  
    2. on join:
    3.     while player is online:
    4.         set {_header} to "The Header text here"
    5.         set {_footer} to "and %new line%Footer text here"
    6.         set tab header to "%{_header}%" and footer to "%{_footer}%" for player
    7.         wait 1 second
    8.  
    From what I understood, this is what you want, right?
     
  4. [Why is this here] fdsfd

    Joined:
    Apr 6, 2019
    Messages:
    21
    Likes Received:
    0
    Yes. Thank you. Also, I'm sorry if I'm starting to get annoying, but how do I do prefixes?
     
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    prefixes? of?
    --- Double Post Merged, Apr 29, 2019, Original Post Date: Apr 29, 2019 ---
    If you talk about the prefixes of the players, use %player's prefix%
     
  6. [Why is this here] fdsfd

    Joined:
    Apr 6, 2019
    Messages:
    21
    Likes Received:
    0
    Would
    Code (Text):
    1. player has permission "staff.owner"
    2.     set %player's prefix% to "&c&lOWNER"
     
  7. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    You needed to remove the percentages.

    The percentages only been used in texts.
    --- Double Post Merged, May 3, 2019, Original Post Date: May 3, 2019 ---
    If it is to show the prefixes in the tabulator, put something like this:
    Code (Skript):
    1.  
    2. on join:
    3.     while player is online:
    4.         set {_header} to "Server name%new line%"
    5.         set {_footer} to "%new line%Rank: %player's prefix%"
    6.         set tab header to "%{_header}%" and footer to "%{_footer}%" for player
    7.         wait 1 second
    8.  
    --- Double Post Merged, May 3, 2019 ---
    If you need help, contact me at my discord couger44#4342, since this post is already marked as solved.
     
  8. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    I think you should remove "%%" in {_header} and {_footer} to evade some problems because {_header} and {_footer} are texts before.

    Code (Skript):
    1.  
    2. on join:
    3.     while player is online:
    4.         set {_header} to "The Header text here"
    5.         set {_footer} to "and %new line%Footer text here"
    6.         set tab header to {_header} and footer to {_footer} for player
    7.         wait 1 second
    8.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...