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

Status
Not open for further replies.

Zak

Member
Mar 28, 2020
2
0
1
18
command /balancetop:
aliases: /baltop, /moneytop
trigger:
loop {baltop::*}:
set {baltop::%loop-index%} to "%loop-value%" parsed as integer
set {_baltop::*} to sorted {money::*} from highest to lowest with format "&f@index &f- &a$@value"
set {_a} to 0
loop {_baltop::*}:
{_a} != 10
add 1 to {_a}
send "&a%{_a}%&a. &f%loop-value%"

how would I make the money formatted?

500000 -> 500,000
 
command /balancetop:
aliases: /baltop, /moneytop
trigger:
loop {baltop::*}:
set {baltop::%loop-index%} to "%loop-value%" parsed as integer
set {_baltop::*} to sorted {money::*} from highest to lowest with format "&f@index &f- &a$@value"
set {_a} to 0
loop {_baltop::*}:
{_a} != 10
add 1 to {_a}
send "&a%{_a}%&a. &f%loop-value%"

how would I make the money formatted?

500000 -> 500,000
please use code block when insering your code.
you may find the answer here: https://www.spigotmc.org/threads/how-to-format-currency-in-skript.337064/
 
Status
Not open for further replies.