I've found a few posts about currency formatting, but I couldn't add them to my code
This is my code
Now here: "give player bamboo named "&aMoney Roll &8[&a$%arg-1%]" with lore "&fRight-Click to redeem" and "&7Rarity &a&lMONEY" I'd like to format the arg-1 part to be like 1000: 1,000 | 10000: 10,000 | 100000: 100,000 etc.
I have no idea how I could start.
Can someone help?
This is my code
Code:
command /withdraw <number> [<number>]:
trigger:
if arg-2 is not set:
if player's balance >= arg-1:
remove arg-1 from balance of player
give player bamboo named "&aMoney Roll &8[&a$%arg-1%&8]" with lore "&fRight-Click to redeem" and "&7Rarity &a&lMONEY"
I have no idea how I could start.
Can someone help?
Last edited: