Scoreboard sharing?

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

BlueIRing

Member
Apr 5, 2021
1
0
1
20
I want each person to see a name.
However, only one person's name is visible to everyone.

Code:
every 1 tick:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "test"
        set score "&f%name of loop-player%" in sidebar of loop-player to 1

I used the code above in the 1.12.2 paper bucket.
Is it bug? or my mistake?
 
I want each person to see a name.
However, only one person's name is visible to everyone.

Code:
every 1 tick:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "test"
        set score "&f%name of loop-player%" in sidebar of loop-player to 1

I used the code above in the 1.12.2 paper bucket.
Is it bug? or my mistake?
Hey, I'm not quite sure what you want to do here do you want to make it so that every player sees their name on their scoreboard or so that every player sees a specific name on their scoreboard? (Like all the players would see the exact same name)

Also avoid using "every 1 tick" events, they're extremely bad for performance so use "every 1 second" at the worst case instead.

Also you should avoid looping all the players as well like maybe just use an on join event with a while loop instead like this:

Code:
on join:
    while player is online:
        wipe player's sidebar
        set name of sidebar of player to "test"
        set score "&f%name of player%" in sidebar of player to 1
        wait a second

But yeah anyways, could you explain what you need?
 
Status
Not open for further replies.