Solved Scoreboard / Sidebar

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

DankAlzein_BOII

New Member
Apr 23, 2020
7
0
1
19
Category: Scoreboards / Sidebars

Suggested name: doesn't matter.

Spigot/Skript Version:

What I want:
so i have an OP prisons server, and i want a scoreboard for it. i searched on here & found some older requests with scoreboard skripts, tho i couldn't really get them to work, i always met some random issues which i couldn't really fix, so i'm kindly asking if anyone can get me this skript.
What i basically want it to do, is, Show a scoreboard with 9 lines(+title)
title would be "titletext" so i can edit it later to whatever i want.
line 9 = "&dTokens: &3 %{Tokens.%player's uuid%}%"
line 8 = "" # blank
line 7 = "&cLevel tokens: &3%{LTokens.%player's uuid%}%"
line 6 = "" # blank
line 5 = "&5Blocks mined: &3{Mined.%player's uuid%}%"
line 4 = "" # blank
line 3 = "&eLevel: &3%{Level.%player's uuid%}%"
line 2 = "" # blank
line 1 = "&6Rebirth: &3%{Rebirth.%player's uuid%}%"

the scoreboard should normally update every 30 ticks (1.5 seconds)
Ideas for commands:
n o n e
Ideas for permissions:
n o n e
When I'd like it by: doesn't really matter.
 
Category: Scoreboards / Sidebars

Suggested name: doesn't matter.

Spigot/Skript Version:

What I want:
so i have an OP prisons server, and i want a scoreboard for it. i searched on here & found some older requests with scoreboard skripts, tho i couldn't really get them to work, i always met some random issues which i couldn't really fix, so i'm kindly asking if anyone can get me this skript.
What i basically want it to do, is, Show a scoreboard with 9 lines(+title)
title would be "titletext" so i can edit it later to whatever i want.
line 9 = "&dTokens: &3 %{Tokens.%player's uuid%}%"
line 8 = "" # blank
line 7 = "&cLevel tokens: &3%{LTokens.%player's uuid%}%"
line 6 = "" # blank
line 5 = "&5Blocks mined: &3{Mined.%player's uuid%}%"
line 4 = "" # blank
line 3 = "&eLevel: &3%{Level.%player's uuid%}%"
line 2 = "" # blank
line 1 = "&6Rebirth: &3%{Rebirth.%player's uuid%}%"

the scoreboard should normally update every 30 ticks (1.5 seconds)
Ideas for commands:
n o n e
Ideas for permissions:
n o n e
When I'd like it by: doesn't really matter.
The scoreboard starts from 0 = 1 to 8 = 9
Addon: SkRayFall https://forums.skunity.com/resources/skrayfall.259/
Code:
on join:
    wipe player's sidebar
    wait 1 tick
    set name of sidebar of player to "&6&lOP Prison"
    create id score "&dTokens: &3%{Tokens.%player's uuid%}%" in sidebar of player to 8 with id "line8-%player%"
    create id score "&1" in sidebar of player to 7 with id "line7-%player%"
    create id score "&cLevel tokens: &3%{LTokens.%player's uuid%}%" in sidebar of player to 6 with id "line6-%player%"
    create id score "&2" in sidebar of player to 5 with id "line5-%player%"
    create id score "&5Blocks mined: &3%{Mined.%player's uuid%}%" in sidebar of player to 4 with id "line4-%player%"
    create id score "&3" in sidebar of player to 3 with id "line3-%player%"
    create id score "&eLevel: &3%{Level.%player's uuid%}%" in sidebar of player to 2 with id "line2-%player%"
    create id score "&4" in sidebar of player to 1 with id "line1-%player%"
    create id score "&6Rebirth: &3%{Rebirth.%player's uuid%}%" in sidebar of player to 0 with id "line0-%player%"
    wait 1.5 seconds
    while player is online:
        update score with id "line8-%player%" to "&dTokens: &3%{Tokens.%player's uuid%}%" and 8
        update score with id "line6-%player%" to "&cLevel tokens: &3%{LTokens.%player's uuid%}%" and 6
        update score with id "line4-%player%" to "&5Blocks mined: &3%{Mined.%player's uuid%}%" and 4
        update score with id "line2-%player%" to "&eLevel: &3%{Level.%player's uuid%}%" and 2
        update score with id "line0-%player%" to "&6Rebirth: &3%{Rebirth.%player's uuid%}%" and 0
        wait 1.5 seconds

on quit:
    wipe player's sidebar
    loop 9 times:
        remove score with id "line%loop-number -1%-%player%"