summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ward <chris@chrisgward.com>2013-01-09 00:17:27 +1100
committerChris Ward <chris@chrisgward.com>2013-01-09 00:17:27 +1100
commit8a666d24673b564ec6009e6b2b1f0c96ba0bea8a (patch)
tree8109f9de5bb19bcb940b40dbfb1023368eb914ab
parentb4ea7e66b1d3770dc76b8bdc67afabd90bd20328 (diff)
downloadEssentials-8a666d24673b564ec6009e6b2b1f0c96ba0bea8a.tar
Essentials-8a666d24673b564ec6009e6b2b1f0c96ba0bea8a.tar.gz
Essentials-8a666d24673b564ec6009e6b2b1f0c96ba0bea8a.tar.lz
Essentials-8a666d24673b564ec6009e6b2b1f0c96ba0bea8a.tar.xz
Essentials-8a666d24673b564ec6009e6b2b1f0c96ba0bea8a.zip
Fix currency display in MOTD
b28db7e435483c201071f7bc477eceb678315f80
-rw-r--r--Essentials/src/net/ess3/utils/textreader/KeywordReplacer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/utils/textreader/KeywordReplacer.java b/Essentials/src/net/ess3/utils/textreader/KeywordReplacer.java
index 37e96053e..70261c577 100644
--- a/Essentials/src/net/ess3/utils/textreader/KeywordReplacer.java
+++ b/Essentials/src/net/ess3/utils/textreader/KeywordReplacer.java
@@ -5,6 +5,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
+import net.ess3.utils.FormatUtil;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -42,7 +43,7 @@ public class KeywordReplacer implements IText
userName = player.getName();
ipAddress = player.getAddress() == null || player.getAddress().getAddress() == null ? "" : player.getAddress().getAddress().toString();
address = player.getAddress() == null ? "" : player.getAddress().toString();
- balance = Double.toString(user.getMoney());
+ balance = FormatUtil.displayCurrency(user.getMoney(), ess);
mails = Integer.toString(user.getData().getMails() == null ? 0 : user.getData().getMails().size());
world = player.getLocation() == null || player.getLocation().getWorld() == null ? "" : player.getLocation().getWorld().getName();
worldTime12 = DescParseTickFormat.format12(player.getWorld() == null ? 0 : player.getWorld().getTime());