mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-26 02:48:20 +01:00
fixed number format
This commit is contained in:
parent
fe10403c57
commit
bad3e2c2aa
@ -178,10 +178,11 @@ public class Economy_3co implements Economy {
|
||||
|
||||
@Override
|
||||
public String format(double amount) {
|
||||
amount = Math.ceil(amount);
|
||||
if (amount == 1) {
|
||||
return String.format("%f %s", amount, getMoneyNameSingular());
|
||||
return String.format("%d %s", (int)amount, getMoneyNameSingular());
|
||||
} else {
|
||||
return String.format("%f %s", amount, getMoneyNamePlural());
|
||||
return String.format("%d %s", (int)amount, getMoneyNamePlural());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user