summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-04 14:23:22 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-04 14:23:22 +0000
commit337e3e8277a5e6d4daae74eedceb429d72336256 (patch)
tree7238c5db4d9da4d4332a38557a2bb51e7fc5c3de /Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
parent88ee42d0890dcad66a2b47a61b8c9209bcda0489 (diff)
downloadEssentials-337e3e8277a5e6d4daae74eedceb429d72336256.tar
Essentials-337e3e8277a5e6d4daae74eedceb429d72336256.tar.gz
Essentials-337e3e8277a5e6d4daae74eedceb429d72336256.tar.lz
Essentials-337e3e8277a5e6d4daae74eedceb429d72336256.tar.xz
Essentials-337e3e8277a5e6d4daae74eedceb429d72336256.zip
[trunk] formatting monies and signs. signs still need some work to incorporate doubles
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1340 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandbalance.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbalance.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
index 2957e2d5c..d2c847abb 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
@@ -2,6 +2,7 @@ package com.earth2me.essentials.commands;
import org.bukkit.Server;
import com.earth2me.essentials.User;
+import com.earth2me.essentials.Util;
import java.text.DecimalFormat;
import org.bukkit.command.CommandSender;
@@ -21,8 +22,7 @@ public class Commandbalance extends EssentialsCommand
{
throw new NotEnoughArgumentsException();
}
- String d = df.format(Double.parseDouble(Double.toString(getPlayer(server, args, 0).getMoney())));
- sender.sendMessage("§7Balance: $" + d);
+ sender.sendMessage("§7Balance: " + Util.formatCurrency(getPlayer(server, args, 0).getMoney()));
}
@Override
@@ -32,7 +32,6 @@ public class Commandbalance extends EssentialsCommand
double bal = (args.length < 1 || !user.isAuthorized("essentials.balance.other")
? user
: getPlayer(server, args, 0)).getMoney();
- String d = df.format(Double.parseDouble(Double.toString(bal)));
- user.sendMessage("§7Balance: $" + d);
+ user.sendMessage("§7Balance: " + Util.formatCurrency(bal));
}
}