#This scoreboard causes my server to crash..

1 messages · Page 1 of 1 (latest)

silk helm
#
    while player is online:
        set title of player's scoreboard to "&b&lDrafty"
        set line 15 of player's scoreboard to " "
        set line 14 of player's scoreboard to "&3&lPlayer"
        set line 13 of player's scoreboard to " &9| &dNickname: &f%player%"
        set line 12 of player's scoreboard to " &9| &aMoney: &fComing soon"
        set line 11 of player's scoreboard to " &9| &ePrestiges: &fComing soon"
        set line 10 of player's scoreboard to " "
        set line 9 of player's scoreboard to "&3&lStats"
        set line 8 of player's scoreboard to " &9| &bKills: &f%{kills::%uuid of player%}%"
        set line 7 of player's scoreboard to " &9| &cDeaths: &f%{deaths::%uuid of player%}%"
        set line 6 of player's scoreboard to " &9| &6Killstreak: %{streak::%player%}%"

What can the problem be?

zinc raven
#

i should write more on that

silk helm
#

Just make it a function?

zinc raven
#

you can do that

#

but it also tells you why youre crashing

silk helm
#

simplify it to me why im crashing

zinc raven
#

Read it

silk helm
#
on join:
    while player is online:
        set title of player's scoreboard to "&b&lDrafty"
        set line 15 of player's scoreboard to " "
        set line 14 of player's scoreboard to "&3&lPlayer"
        set line 13 of player's scoreboard to " &9| &dNickname: &f%player%"
        set line 12 of player's scoreboard to " &9| &aMoney: &fComing soon"
        set line 11 of player's scoreboard to " &9| &ePrestiges: &fComing soon"
        set line 10 of player's scoreboard to " "
        set line 9 of player's scoreboard to "&3&lStats"
        set line 8 of player's scoreboard to " &9| &bKills: &f%{kills::%uuid of player%}%"
        set line 7 of player's scoreboard to " &9| &cDeaths: &f%{deaths::%uuid of player%}%"
        set line 6 of player's scoreboard to " &9| &6Killstreak: %{streak::%player%}%"
        wait 5 ticks
``` So this would work?
silk helm
#

it works ty