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.

Team prefix with Skellett

Discussion in 'Skript' started by salnwar, Dec 24, 2018.

Thread Status:
Not open for further replies.
  1. salnwar

    salnwar Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    0
    Hello, I have a problem with Skellett adon: I don't know how can I set the prefix of my created team.

    I found this in SkriptHub docs and in the plugin's code.
    [​IMG]

    I've tried this:
    Code (Skript):
    1. set scoreboard team prefix of "player" to "&8"
    But it doesn't work, this expression can't be found by Skript.

    Thank you for your help.
     
  2. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    You need to get the team first:

    Code (Skript):
    1. [skellett] (score[ ][board]|board) [get] team [(for|from|of)] %string%
    2.  
    3. set {_team} to scoreboard team of "player"
    4. set scoreboard team prefix of {_team} to "&8"
     
    salnwar likes this.
  3. salnwar

    salnwar Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    0
    Oh, thanks you, but now.. How can I adding a player to this team ?
    I didn't found anything about that on SkUnity's docs or SkriptHub's docs
     
  4. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    Code (Skript):
    1. [skellett] (score[ ][board]|board) add entry [(from|of)] %string% to %team%
    2.  
    3. Add an entry to the given team. Entry is a string which can be either an entity or a player.
    4.  
    I believe this is what you are looking for.
    Try this:
    Code (Skript):
    1. scoreboard add entry "%player%" to {_team}
    or
    Code (Skript):
    1. scoreboard add entry player to {_team}
     
    salnwar likes this.
  5. salnwar

    salnwar Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    0
    Thank you, now I have multiples problems..

    These lines
    Code (Skript):
    1. set scoreboard team prefix of {_team} to "&7Player "
    2. set scoreboard team display name of {_team} to "&7Player "
    3. scoreboard add entry "%player%" to {_team}
    cause these errors:
    https://hastebin.com/xavaxevaka for team prefix
    https://hastebin.com/yubanojuzo for team entry
    https://hastebin.com/maruxoyeyi for team display name

    Skellett is not compatible with PaperSpigot ?

    My code:
    Code (Skript):
    1. register a new scoreboard team "player" in scoreboard
    2. set {_team} to scoreboard team of "player"
    3.  
    4. set scoreboard team prefix of {_team} to "&7Player "
    5. set scoreboard team display name of {_team} to "&7Player "
    6. #here I would like to set NAMETAG VISIBILITY of team to always but I don't know how
    7.  
    8. scoreboard add entry "%player%" to {_team}
    Thank you for answer.
     
  6. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    What is the exact code you used?
     
  7. Runakai

    Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Try removing SkStuff and/or MundoSK I believe it was skstuff since I was having the same problem
     
  8. salnwar

    salnwar Member

    Joined:
    Dec 24, 2018
    Messages:
    11
    Likes Received:
    0
    It's not due to these plugins (MundoSK or SkStuff).. Maybe I'll do request someone to doing this (an group system working with Skellett addon).

    An this in my testing code:
    Code (Skript):
    1. on load:
    2.     register a new scoreboard team "player" in scoreboard
    3.     set {_team} to scoreboard team of "player"
    4.     set scoreboard team prefix of {_team} to "&7Player "
    5.     set scoreboard team display name of {_team} to "PLAYER "
    6.     #here I would like to set NAMETAG VISIBILITY of team to ALWAYS but I don't know how can I do that
    7.  
    8. command /tjoin:
    9.     trigger:
    10.         set {_team} to scoreboard team of "player"
    11.  
    12.         scoreboard add entry "%player%" to {_team}
    13.  
    14. command /tquit:
    15.     trigger:
    16.         set {_team} to scoreboard team of "player"
    17.         scoreboard remove entry "%player%" from {_team}
     
  9. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    I have tried to recreate this issue on multiple versions of Spigot and PaperSpigot and the issue still appears. It seems to be an issue with Skellett.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...