Scoreboard showing random player

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

Avipexe

Member
Oct 5, 2019
2
0
1
19
Ok so, I have a scoreboard which worked, showed the correct statistics about the correct player, but now, it shows the player who died last to every player (for example, if I die, the scoreboard will display my name and stats for everyone)

(I made a command which loops every player and sends the loop-player, like below, but instead of just showing one player it shows every player on the server)

Code:
command /test:
    trigger:
        loop all players:
            send "%loop-player%"

Here is my code

Code:
every 10 seconds:
    loop all players:
        wipe loop-players sidebar
        set {_online} to number of players
        set {_balance.%loop-player%} to loop-player's balance
        set name of sidebar of loop-player to "myservername"
        set score "&3" in sidebar of loop-player to 15
        set score "&3" in sidebar of loop-player to 13
        set score "&3&3Bal:" in sidebar of loop-player to 12
        set score "&b&b%{_balance.%loop-player%}%" in sidebar of loop-player to 11
        set score "&3&3" in sidebar of loop-player to 10
        set score "&3&3Online:" in sidebar of loop-player to 9
        set score "&b%{_onlinee}%" in sidebar of loop-player to 8
        set score "&3&3" in sidebar of loop-player to 7
        set score "&3TPS:" in sidebar of loop-player to 6
        set score "&b%the server's tps%" in sidebar of loop-player to 5
        set score "&3&3" in sidebar of loop-player to 4
        set score "&3&3Time Played:" in sidebar of loop-player to 3
        set score "&b%{hours.%loop-player%}%" in sidebar of loop-player to 2
        set score "&3" in sidebar of loop-player to 1
        set score "play.myserver.net" in sidebar of loop-player to 0
        set score "&b%loop-player%" in sidebar of loop-player to 14

(no errors)
 
I'd like to point out that loop all players every 10 seconds is a no no, if you tell me what you're trying to gain by doing this I might have another solution.
I'm confused tho
 
Status
Not open for further replies.