Team prefix with Skellett

  • 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!

Status
Not open for further replies.

salnwar

Member
Dec 24, 2018
11
0
1
25
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.
Capture-decran-2018-12-24-a-01.48.21.png


I've tried this:
code_language.skript:
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.
 
You need to get the team first:

code_language.skript:
[skellett] (score[ ][board]|board) [get] team [(for|from|of)] %string%

set {_team} to scoreboard team of "player"
set scoreboard team prefix of {_team} to "&8"
 
  • Like
Reactions: salnwar
You need to get the team first:

code_language.skript:
[skellett] (score[ ][board]|board) [get] team [(for|from|of)] %string%

set {_team} to scoreboard team of "player"
set scoreboard team prefix of {_team} to "&8"

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
 
code_language.skript:
[skellett] (score[ ][board]|board) add entry [(from|of)] %string% to %team%

Add an entry to the given team. Entry is a string which can be either an entity or a player.
I believe this is what you are looking for.
Try this:
code_language.skript:
scoreboard add entry "%player%" to {_team}
or
code_language.skript:
scoreboard add entry player to {_team}
 
  • Like
Reactions: salnwar
code_language.skript:
[skellett] (score[ ][board]|board) add entry [(from|of)] %string% to %team%

Add an entry to the given team. Entry is a string which can be either an entity or a player.
I believe this is what you are looking for.
Try this:
code_language.skript:
scoreboard add entry "%player%" to {_team}
or
code_language.skript:
scoreboard add entry player to {_team}
Thank you, now I have multiples problems..

These lines
code_language.skript:
set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
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_language.skript:
register a new scoreboard team "player" in scoreboard
set {_team} to scoreboard team of "player"

set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
#here I would like to set NAMETAG VISIBILITY of team to always but I don't know how

scoreboard add entry "%player%" to {_team}

Thank you for answer.
 
Thank you, now I have multiples problems..

These lines
code_language.skript:
set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
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_language.skript:
register a new scoreboard team "player" in scoreboard
set {_team} to scoreboard team of "player"

set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
#here I would like to set NAMETAG VISIBILITY of team to always but I don't know how

scoreboard add entry "%player%" to {_team}

Thank you for answer.
What is the exact code you used?
 
Thank you, now I have multiples problems..

These lines
code_language.skript:
set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
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_language.skript:
register a new scoreboard team "player" in scoreboard
set {_team} to scoreboard team of "player"

set scoreboard team prefix of {_team} to "&7Player "
set scoreboard team display name of {_team} to "&7Player "
#here I would like to set NAMETAG VISIBILITY of team to always but I don't know how

scoreboard add entry "%player%" to {_team}

Thank you for answer.
Try removing SkStuff and/or MundoSK I believe it was skstuff since I was having the same problem
 
Try removing SkStuff and/or MundoSK I believe it was skstuff since I was having the same problem
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).

What is the exact code you used?
An this in my testing code:
code_language.skript:
on load:
    register a new scoreboard team "player" in scoreboard
    set {_team} to scoreboard team of "player"
    set scoreboard team prefix of {_team} to "&7Player "
    set scoreboard team display name of {_team} to "PLAYER "
    #here I would like to set NAMETAG VISIBILITY of team to ALWAYS but I don't know how can I do that

command /tjoin:
    trigger:
        set {_team} to scoreboard team of "player"

        scoreboard add entry "%player%" to {_team}

command /tquit:
    trigger:
        set {_team} to scoreboard team of "player"
        scoreboard remove entry "%player%" from {_team}
 
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_language.skript:
on load:
    register a new scoreboard team "player" in scoreboard
    set {_team} to scoreboard team of "player"
    set scoreboard team prefix of {_team} to "&7Player "
    set scoreboard team display name of {_team} to "PLAYER "
    #here I would like to set NAMETAG VISIBILITY of team to ALWAYS but I don't know how can I do that

command /tjoin:
    trigger:
        set {_team} to scoreboard team of "player"

        scoreboard add entry "%player%" to {_team}

command /tquit:
    trigger:
        set {_team} to scoreboard team of "player"
        scoreboard remove entry "%player%" from {_team}
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.
 
Status
Not open for further replies.