Blocksmined Leaderboard Skript

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

OhJxss_

Member
Apr 22, 2024
1
0
1
24
I got a skript from someone else on skunity but im not able to swap out variables to make it work, I wanna use this variable: {blocks_mined.%player's uuid%}
and heres the skript I got from the forum

Code:
command /top:
    trigger:
        set {_top::*} to sorted indices of {money::*} in descending order
        loop 10 times:
            add {_top::%loop-value%} to {_top_10::*}
        loop {_top_10::*}:
            add 1 to {_n}
            send "&a&l%{_n}% &7- &2%{_top_10::%{_n}%} parsed as offlineplayer% &7- &6%{money::%{_top_10::%{_n}%}%}% " to player

Any help would be appreciated :emoji_slight_smile:
 
I got a skript from someone else on skunity but im not able to swap out variables to make it work, I wanna use this variable: {blocks_mined.%player's uuid%}
and heres the skript I got from the forum

Code:
command /top:
    trigger:
        set {_top::*} to sorted indices of {money::*} in descending order
        loop 10 times:
            add {_top::%loop-value%} to {_top_10::*}
        loop {_top_10::*}:
            add 1 to {_n}
            send "&a&l%{_n}% &7- &2%{_top_10::%{_n}%} parsed as offlineplayer% &7- &6%{money::%{_top_10::%{_n}%}%}% " to player

Any help would be appreciated :emoji_slight_smile:
The issue is the type of variable, you have to use a list variable. So {blocks_mined::%player's uuid%} instead of {blocks_mined.%player's uuid%}