Vault economy.withdraw() parsing error
eweilow opened this issue ยท 2 comments
Hello. I have encountered an error where I withdraw a value with decimals such as 0.25.
It gives me this error:
Caused by: java.lang.NumberFormatException: For input string: "248,75"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.valueOf(Unknown Source)
at org.melonbrew.fe.database.Account.getMoneyRounded(Account.java:35)
at org.melonbrew.fe.database.Account.setMoney(Account.java:49)
at org.melonbrew.fe.database.Account.withdraw(Account.java:25)
at org.melonbrew.fe.Economy_Fe.withdrawPlayer(Economy_Fe.java:122)
I believe it has something to do with the "," in the input string whereas it should be "."
A quick fix would be great :)
org.melonbrew.fe.database.Account.getMoneyRounded(Account.java:35)
This is not an error in Vault, it's in your economy plugin. Please report to them, thanks.