#Shows uuid insted of username
1 messages · Page 1 of 1 (latest)
it changed, theres nothing to do with uuid's anymore, but now it only shows, <none> instead of the players name
new script:
hologram: TopMoney
reload: 5 seconds
top: 10
every {@reload}:
if {top.loc} is set:
loop {money::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
loop {_high.to.low.list::*}:
add 1 to {_result}
set {_player} to {_p}
execute console command "/hd setline {@hologram} %{_result}+1% &e%{_result}%. &a%{_player}% &7- $&e%{money::%loop-value%}%"
if {_result} is {@top}:
stop
else:
loop all players:
loop-player is op:
send "&a❆ Top {@top} is not set!" to loop-player
send "&b❆ do /setholo" to loop-player```
do you know how i can make it show the name?
What line?
execute console command "/hd setline {@hologram} %{_result}+1% &e%{_result}%. &a%{_player}% &7- $&e%{money::%loop-value%}%"
and the line above try's to set it to the player;s name
Where do you set {_p}?
its a leaderboard btw, so its supposed to show the players name that has that amount of money, not thge player looking at it
^^
above the line you asked for
set {_player} to {_p}
No
{_p} is not set
What do you want {_player} to be?
Not rn