#Can someone help me with Baltop

1 messages · Page 1 of 1 (latest)

fossil mantle
#
every 1 minute:
    loop indices of {Balance::*} in descending order:
        set {Balance::%loop-value%} to round({Balance::%loop-value%})
        set {_PlayerName} to loop-value parsed as offline player
        exit loop if {_Baltop-Placement} >= 10
        execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
        add 1 to {_Baltop-Placement}

This works fine! But i want that only players without permission "baltop.ignore" list up to this top .. can someone help me?

versed depot
#
    do thing```
fossil mantle
#
every 1 minute:
    if player does not have permission "baltop.ignore":
        loop indices of {Balance::*} in descending order:
            set {Balance::%loop-value%} to round({Balance::%loop-value%})
            set {_PlayerName} to loop-value parsed as offline player
            exit loop if {_Baltop-Placement} >= 10
            execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
            add 1 to {_Baltop-Placement}
fast solstice
# fossil mantle

Thats because when u do every minute the game doesnt have a player to check for
u need to loop each player but adding that into the code u will have to do another way of checking

fossil mantle
#

how can i do that.. im a newbie in script..

fast solstice
#

wait

fossil mantle
#

but if hes stop

fast solstice
#

sorry

fossil mantle
#

only stops for me?

fast solstice
#

its wrong

fossil mantle
#

oh okay

fast solstice
#

fixed

#

i think that should work

#

wait

#

oh am stupid

fossil mantle
#

removes me also from the holo list?

fast solstice
#

sorry

#

am stupid

#

that wont work

#

2 sec

fossil mantle
#

ye

fast solstice
#

so basicly if the player has the permssion u want to not display them?

fossil mantle
#

yea

versed depot
#

that doesnt work cause it just stops the whole thing when one person does not have permission

versed depot
#

ah

#

maurice are you saving player name/uuid as index for {Balance::*}?

fast solstice
#

wait

#

ur saving the value as the player...

fossil mantle
#

eeeeh where i can see it, im completely new with skript i bought a skript so i cant say it xd

fast solstice
#

and the index as the number...

versed depot
#

ye

fast solstice
#

if 2 people have the same amount of money boom its broke

versed depot
#

you have it switched :P

fossil mantle
#

wdym with switched?

fast solstice
versed depot
#

set {_PlayerName} to loop-value parsed as offline player

#

{balance::%player's uuid%} = 100

#

100 is the value

#

player's uuid is the index

fossil mantle
#

and how i need to change it that it works? :? Sorry for the dumb question...

fast solstice
#

value is what is contained in the list fx set {Var::cheese} to 10 the value is 10 but the index is cheese

#

and u can only have 1 index

#

so fx

#

{Money::123} = pete675u
{Money::123} = bob21
it will break since it can only hold 1 value

fast solstice
fossil mantle
#

oh..

#

its a completely gen server where is started

#

so i cant change any variables

versed depot
#
    set {_p} to loop-index
    {_p} parsed as offline-player does not have permission "x"
    set {_v} to loop-value
    do more things
    add 1 to {_n}
    {_n} >= 10
    stop```
fast solstice
#

oh u could do a reverse proggses

#

but

#

thats kinda stupid

#

and still 2 people with the same index will break

fast solstice
versed depot
#

use player's uuid

fast solstice
simple isle
#

you dont need those 50 lines of code to sort.
Here is a short sorting example

set {_sorted::*} to sorted indices of {yourVar::*} in ascending order
loop 10 times:
    set {_p} to {_sorted::%loop-number%} parsed as offline player #<--- this is the player
    set {_value} to {yourVar::%{_sorted::%loop-number%}%} #<---- this is the value
versed depot
#

if ur setting balance

#

set {balance::%player's uuid%} to {_amount}

fast solstice
fossil mantle
#

its so hard for me as newbie in skript to change any things with baltop and much more..

fast solstice
fossil mantle
#

so idk how to change this that it work

fast solstice
#

well basicly what he does is

#

he says we get the list sorted right

#

and then because of way its sorted the first 10 will the 10 people with higest money

#

so now he loops 10 times to find those 10 players

fast solstice
fossil mantle
#
command /addbalance [<player>] [<number>]:
    aliases: /addb
    trigger:
        if player does not have permission "rank.admin":
            executor is player
            send "{@Error} &cYou don't have permission to use this."
            stop
        if arg-1 or arg-2 is not set:
            play sound "block.note_block.bass" with pitch 1 to player
            send "{@BalancePrefix} &fUsage: &6/&eaddbalance &2<&aplayer&2> &2<&aamount&2>&f."
            stop
        if arg-1 or arg-2 is set:
            play sound "block.note_block.bass" with pitch 1 to player
            send "{@BalancePrefix} &fYou have added &a$%regex(arg-2)% &fto &e%arg-1%'s &fbalance." to player
            send "{@BalancePrefix} &a$%regex(arg-2)% &fhas been added to your account." to arg-1
            add arg-2 to {balance::%UUID of arg-1%}
            stop

fast solstice
#

hey use else if

#

instead of stoping every time u can just say else if

#

which only runs if the second condition was not true

fossil mantle
#

its not my code i bought in from BuildByBit

fast solstice
#

U BOught it?

fossil mantle
#

ye

fast solstice
#

thats a scam

fossil mantle
#

a completely gen server

fast solstice
#

how much did u pay

fast solstice
#

for the entire server?

fossil mantle
#

for the completely server 15 $

#

yes

#

for all

fast solstice
#

ah makes more sense

fossil mantle
#

It works fine so i cant say anything

#

but some things could be better

#

example baltop

fast solstice
#

but ur baltop

fossil mantle
#

my team listed up there

#

xd

fast solstice
#

ur baltop... the variables dont even match

fossil mantle
#

for payouts is wanna be dumb

#

But it works

#

o.o

fast solstice
#

the variables dont even match...

#

oh sorry

#

am stupid

#

i was thiking of another skript

fossil mantle
#

xD

#

here

#

i show you not the 1-2 place

#

because the 2 place has forbidden words into his name

fast solstice
#

wait

#

u might wanna decrase the time to something like 10 minutes

#

it might use lots of ram to loop all the lists

#

every 1 minute:
loop indices of {Balance::*} in descending order:
set {Balance::%loop-value%} to round({Balance::%loop-value%})
set {_PlayerName} to loop-value parsed as offline player
exit loop if {_Baltop-Placement} >= 10
execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
add 1 to {_Baltop-Placement}

fossil mantle
#

i got 64GB Ram

#

and 18 Cores

#

8*

#

sorry

#

im external

fast solstice
#

good but still it might be bad if u have like 5000 values to loop every 1 minute but u do u

fast solstice
fossil mantle
#

Its so hard for me to understand english holy xD but ye thats right its kinda heavy to loop every minute xd

fast solstice
#

if u have like 5000 players who have each joined and added a value to the list ur gonna loop it again

#

each player that adds a value u need to loop every minute

fossil mantle
#

so increase it to 10 minutes?

fast solstice
#

ur choice

fossil mantle
#

what do you think?

fast solstice
#

i just reccomend maybe increasing the time

fossil mantle
#

okay

fast solstice
#

set {_sorted::} to sorted indices of {Balance::} in ascending order
loop 10 times:
set {_p} to {_sorted::%loop-number%} parsed as offline player
set {_value} to {Balance::%{_sorted::%loop-number%}%}

#

now i took promasterio code and fixed it with the variables

#

so basicly first we make a new variable that is a sorted version of balanace

fossil mantle
#

but works with the balances of players?

fast solstice
#

ye

fossil mantle
#

Sorry for dumb questions xd

fast solstice
#

no its fine

fossil mantle
#

I have a test server so i can test any changes there

fast solstice
#

ok good

fossil mantle
#

So what i need to do now

fast solstice
#

amma find out

fossil mantle
#

ok

fast solstice
#

set {_sorted::} to sorted indices of {Balance::*} in ascending order
loop 10 times:
set {_p} to {_sorted::%loop-number%} parsed as offline player
set {_value} to {Balance::%{_sorted::%loop-number%}%}

#

how tf to remove the **

fossil mantle
#

send it with code format

versed depot
#

use code blocks

fast solstice
#

oh right

#
set {_sorted::*} to sorted indices of {Balance::*} in ascending order
loop 10 times:
    set {_p} to {_sorted::%loop-number%} parsed as offline player
    set {_value} to {Balance::%{_sorted::%loop-number%}%}
#

now this code sortes

fossil mantle
#

this i replace with my old loop?

fast solstice
#

well its not a loop yet

fossil mantle
#

the "every 1 minute:" delete too?

fast solstice
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-number%}%}
#INSERT UR HOLOGRAM HERE
#

there u go

#

use {_value} as the place holder for value

#

but

#

it doenst have permission skipping yet

versed depot
#

dont forget to account for people removed from baltop

#

you can just remove them from {_sorted::*}

fast solstice
fossil mantle
#

but i need permission

#

?

#

o.o

fast solstice
#

ye but use that code for now its way more efficent

fossil mantle
#

okay wait i will tes.t

versed depot
#

instead of loop 10 times:

fast solstice
#

also btw its not my code its promaterio i just made it work

versed depot
#

use while {_n} is < 10:

#

then increment if player is not excluded from baltop

fast solstice
fossil mantle
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_PlayerName} to {Balance::%{_sorted::%loop-number%}%}
        exit loop if {_Baltop-Placement} >= 10
        execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
        add 1 to {_Baltop-Placement}
#

like this?

fast solstice
#

no thats ur old code?

#

just use the new code

fossil mantle
#

you told me add hologram

fast solstice
#

oh

#

right

#

u wanted position

fossil mantle
#

ye

fast solstice
#

but u can remove the 6 line

fossil mantle
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_PlayerName} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
        add 1 to {_Baltop-Placement}
#

like this?

fast solstice
#

wait no

versed depot
#

you need a while loop with {_Baltop-Placement}

#

otherwise if theres a player thats excluded it will skip them and leave you with only 9

fast solstice
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-number%}%}
#INSERT UR HOLOGRAM HERE
#

this code right

#

u just add ur hologram

#

and u have p for player value for the amount of money and loop-value is the spot in the baltop

fossil mantle
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_PlayerName} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %{_Baltop-Placement} + 3% &##5ae05e##%{_Baltop-Placement} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"
#

like this?

fast solstice
#

no baltop placement u need to replace with loop-value

#

this is just first step to make sure u can run it this way

#

and then we add permission skipping

#

also the playername should be {_p}

fossil mantle
#

so change %loop-value% to loop-number?

fast solstice
#

no

fossil mantle
#

idk what you mean sorry

fast solstice
#

replace {_Baltop-Placement} with loop-value

#

and replace {_PlayerName} with {_p}

fossil mantle
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_p} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %{loop-value} + 3% &##5ae05e##%{loop-value} + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"#
fast solstice
#

no loop-value is not a varible so remove the {} around it

#

{loop-value} = loop-value

#

wait i can do it

fossil mantle
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_p} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_PlayerName}%: &a$%regex({Balance::%loop-value%})%"

fast solstice
#

no u messed up the code

fossil mantle
#

please do it for me

#

idk

fast solstice
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_p}%: &a$%regex({_value})%"
#

but what does regex do?

fossil mantle
#

idk

fast solstice
#

am pretty sure u can remove it

fossil mantle
#

what do i need to replace with _value?

#

_p?

fast solstice
#
every 1 minute:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-number%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-number%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_p}%: &a$%{_value}%"
#

this should work

fossil mantle
#

what to i need toi replace for %{_value}%

fast solstice
#

u dont need to replace anything with that code

fossil mantle
#

now i need wait 1 minute?

fast solstice
#

yes u incrase the time while testing

simple isle
fossil mantle
#

eeeh

#

now all players with 0$

fast solstice
#

hmm

fossil mantle
#

will displayed there 1 with 140$

fast solstice
fossil mantle
#

BUT

#

i have 2 million

fast solstice
#

on ur test server?

fossil mantle
#

yes

#

im on the test server

#

but nothing happens i will no displayed there

fast solstice
#

and u are sure u got 2m?

fossil mantle
#

Ye

fast solstice
#

can u check somehow?

fossil mantle
#

it has been updated yet but nothing happend

fast solstice
#

and its the same variable

#

ur not using another skript for ur test server

fossil mantle
#

yes tthe same

#

the same server just copy and paste

#

and change the skript like your code

fast solstice
#

u copied my code 100%?

#

and did reload?

fossil mantle
#

yes

fast solstice
#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-value%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_p}%: &a$%{_value}%"
fossil mantle
fast solstice
#

oh yeah there is missing a ¤

#

%

#

fixed

fossil mantle
fast solstice
#

can u check peoples accounts?

fossil mantle
#

i have alot peoples where have more then 0$

#

no

#

i have 2 Million and i not diplayed there

fast solstice
#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in descending order
    loop 10 times:
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-value%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_p}%: &a$%{_value}%"
#

it was rewersed

#

it was showing top 10 lowest am pretty sure

fossil mantle
#

its kinda weird

fast solstice
#

idk thats my idea

fossil mantle
#

after

fast solstice
#

it would seem like its plausble

fossil mantle
#

the first place

#

he dont use . ,

#

and im under place 1?

#

and shiorifx

#

is 2x there

fast solstice
#

delete i

#

delete it somehow

#

its just bugged

#

see how it has a comma that makes it bugged

#

idk how tho

#

its test server right so u can clear his balanace???

#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop 10 times:
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        set {_value} to {Balance::%{_sorted::%loop-value%}%}
        execute console command "/hd setline Baltop %loop-value + 3% &##5ae05e##%loop-value + 1% &7| &f%{_p}%: &a$%{_value}%"
        clear {Balance::%"shiorifx" parsed as a player%}
#

this should clear his bugged balance

#

btw whats ur server name

fossil mantle
#

PlatinGens

fast solstice
#

does the skript work

fossil mantle
#

wait

fast solstice
#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            execute console command "/hd setline Baltop %{_n} + 3% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
            clear {Balance::%"shiorifx" parsed as a player%}
#

i hope it works

fossil mantle
fast solstice
#

hmmm

fossil mantle
#

is it not possible to use my code with a permission ask?

fast solstice
#

it is

#

hmm

#

that guy is still bugged

fossil mantle
#

nobody is stucked, i got much more players then have more as 0$

fast solstice
#

no like no the comma

fossil mantle
#

idk why..

fast solstice
#

wait

#

does everyone else have that permission node?

fossil mantle
#

which?

#

oh

#

wait

fast solstice
#

also rembmer to set ur permission

fossil mantle
#

ye but i have no rights

#

and i dont show up into the hologram

fast solstice
fossil mantle
#

yes

fast solstice
#

hmm

#

is it ok if i broadcast for testing?

fossil mantle
#

yes

fast solstice
#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            broadcast "%{_n}%"
            execute console command "/hd setline Baltop %{_n} + 3% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
#

ops

#

therte

#

tell me what it broadcasts

fossil mantle
#

xD

fast solstice
#

nice

#

that works

#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in ascending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        broadcast "%{_sorted::%loop-value%} %"
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
#            broadcast "%{_n}%"
            execute console command "/hd setline Baltop %{_n} + 3% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
#

this will broadcast alot

fossil mantle
fast solstice
#

is there more?

#

is that all

fossil mantle
#

is all

#

every 10 econds thos

#

this

#

10 uuis

#

uuids*

fast solstice
#

thats a problem

#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in descending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            execute console command "/hd setline Baltop %{_n} + 3% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
#

try this

#

it should work

fossil mantle
#

ye but first polace

#

bugged

fast solstice
#

ik

#

but thats simply because his balance is bugged

#

idk how the hell i fix thart

fast solstice
fossil mantle
#

no

#

im on the hologram

#

ah

fast solstice
#

did u op urself again?

fossil mantle
#

and have no rights

#

yes

#

ah wait

fast solstice
#

So it works?

fossil mantle
#

wanna se

#

now i have op

#

Yes

#

it works i guess?

#

now theres 2x shiorifx

#

1 bugged

#

but why is only the 1 place bugged

#

wtf

fast solstice
#

ik but it wont be like that on the real server

#

what

fossil mantle
#

its the same server so why do you think it wont be displayed on the main server?

fast solstice
#

idk it might be diffrent

fast solstice
fossil mantle
#

The thing i the first place is not from the skript

fast solstice
#

what

fossil mantle
#

the first place wont be updated

#

with comma dot

fast solstice
#

oh

#

what

fossil mantle
#

so it make noi sense to ignore the first playr

fast solstice
#

thats so strangfe

fossil mantle
#

if i ignore them

#

so there will be list it always

#

because its bugged

fast solstice
#

and u dint have that problem before?

fossil mantle
#

no

fast solstice
#

wait

#

it might be that ur not updating the number 1 spot?

#

and it stays the same

#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in descending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            execute console command "/hd setline Baltop %{_n} + 2% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
#

this?

fossil mantle
#

yes

fast solstice
#

try it

fossil mantle
#

YES

#

Nnows

#

ah noo

#

.

#

.#1 is not displayed anymore..

fast solstice
#

...

fossil mantle
#

and

#

hes showing me 2-11

fast solstice
#

can i see

fossil mantle
fast solstice
#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in descending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            execute console command "/hd setline Baltop %{_n} + 3% &##5ae05e##%{_n} + 1% &7| &f%{_p}%: &a$%{_value}%"
#

now add this code back

#

and it might fix

fossil mantle
#

nope

#

it will show me #2 2x

#

not

#

.#1

#

and 2x me

fast solstice
#

and who is number 1?

fossil mantle
fast solstice
#

screenshot?

fossil mantle
#

idk?

#

xD

fast solstice
#

...

#

weird

#
every 10 seconds:
    set {_sorted::*} to sorted indices of {Balance::*} in descending order
    loop size of {_sorted::*} times:
        if {_n} >= 10:
            exit loop
        set {_p} to {_sorted::%loop-value%} parsed as offline player
        if {_p} does not have permission "somepermission":
            set {_value} to {Balance::%{_sorted::%loop-value%}%}
            add 1 to {_n}
            execute console command "/hd setline Baltop %{_n} + 2% &##5ae05e##%{_n}% &7| &f%{_p}%: &a$%{_value}%"
#

this?

fossil mantle
#

yes

#

now its right

#

now i give me op wait

#

IIIT WORKKKS

fast solstice
#

NICE

#

really nice

fast solstice
fossil mantle
#

is that because is not enough players on the top?

fast solstice
lament holly
#

If this is possible: How can I detect a sub variable*?*'s highest number? So such as one sub variables highest number is 2 but another one's is 5 & I want to add one to the one with 2 so it would have 3.

Also what I mean by sub variable is like this {Variable::SubVariable1::SubVariable2::SubVariableEct}.