From bad3e2c2aa0e52e7cc42930a53ff2dcd7fc88a39 Mon Sep 17 00:00:00 2001 From: mung3r Date: Wed, 28 Sep 2011 20:27:52 -0700 Subject: [PATCH] fixed number format --- src/net/milkbowl/vault/economy/plugins/Economy_3co.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/milkbowl/vault/economy/plugins/Economy_3co.java b/src/net/milkbowl/vault/economy/plugins/Economy_3co.java index 60c0734..c146d62 100644 --- a/src/net/milkbowl/vault/economy/plugins/Economy_3co.java +++ b/src/net/milkbowl/vault/economy/plugins/Economy_3co.java @@ -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()); } } }