Hello there, so i was wondering if i could format the balance in the scoreboard since my economy on my server is a bit high and it will easily go into the millions i was wondering how i could format it.
this is not working
code_language.skript:
every 5 seconds in "main":
loop all players:
if {scoreboard.player.%uuid of loop-player%} is not set:
wipe loop-player's sidebar
set {balace.%loop-player%} to "%loop-player's balance%"
set {_prefix.%uuid of loop-player%} to "%colored loop-player's prefix%"
replace all "(" and ")" with "" in {_prefix.%uuid of loop-player%}
set name of sidebar of loop-player to "&d&lSERVER &7(Prison)"
set score "&8&m---------------------" in sidebar of loop-player to 10
set score "&d&lPlayer Information" in sidebar of loop-player to 9
set score " &d&l* &7Name: &f%loop-player%" in sidebar of loop-player to 8
if {balace.%loop-player%} is less than or equal to 999999:
set {balace.%loop-player%} to {balace.%loop-player%} / 1000
set score " &d&l* &7Balance: &f%{balace.%loop-player%}%k" in sidebar of loop-player to 7
if {balance.%loop-player%} is more than 999999:
set {balace.%loop-player%} to {balace.%loop-player%} / 1000000
set score " &d&l* &7Balance: &f%{balace.%loop-player%}%k" in sidebar of loop-player to 7
set score " &d&l* &7Tokens: &f%{token.balance.%uuid of loop-player%}%" in sidebar of loop-player to 6
set score "&f" in sidebar of loop-player to 5
set score "&d&lServer Information" in sidebar of loop-player to 4
set score " &d&l* &7Online: &f%number of all players%" in sidebar of loop-player to 3
set score " &d&l* &7Server IP: &f(/adress)" in sidebar of loop-player to 2
set score "&8&m---------------------&f" in sidebar of loop-player to 1
if {scoreboard.player.%uuid of loop-player%} is set:
stop
Last edited: