For the longest time this has bothered me but I have never exactly found a solution to it, basically I have tons of economy related scripts in which players get paid and usually this means I send them a message in chat that tells them how much they earned, a super basic example below:
The problem is in chat, zeros after a decimal are not displayed, this means that 2.50 is displayed as 2.5 in chat, 2.00 would be displayed as 2 etc, this is just tedious since I'd like everything to be displayed correctly as money, I have tried a few things such as parsing {_money} as money but no luck there, I also tried parsing it as text but no luck there either, I just thought I'd reach out for help on the forums and see if anyone has any ideas?
Sidenote: I am aware of the "number accuracy:" option in the skript config, I have it set to 2 but like it says:
"Zeroes will never be displayed at all, so this setting only applies to numbers that actually have a decimal part with one or more non-zero digits."
I also noticed it also says:
"Money bypasses this setting and is displayed as configured in your economy plugin if you have one."
But like I said when I parse the value as money it still shows it as 2.5
code_language.skript:
command /test:
trigger:
set {_money} to 2.50
add {_money} to player's balance
send "You have earned %{_money}%" to player
The problem is in chat, zeros after a decimal are not displayed, this means that 2.50 is displayed as 2.5 in chat, 2.00 would be displayed as 2 etc, this is just tedious since I'd like everything to be displayed correctly as money, I have tried a few things such as parsing {_money} as money but no luck there, I also tried parsing it as text but no luck there either, I just thought I'd reach out for help on the forums and see if anyone has any ideas?
Sidenote: I am aware of the "number accuracy:" option in the skript config, I have it set to 2 but like it says:
"Zeroes will never be displayed at all, so this setting only applies to numbers that actually have a decimal part with one or more non-zero digits."
I also noticed it also says:
"Money bypasses this setting and is displayed as configured in your economy plugin if you have one."
But like I said when I parse the value as money it still shows it as 2.5