summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-06-24 13:31:07 +0200
committerKHobbits <rob@khobbits.co.uk>2013-06-24 13:31:07 +0200
commitc92ae00f9f9efce61eacdcf577b413217570c645 (patch)
treeb12c6d70dbc19945fb40fdd54c5aa8efc3c9c844
parent66355f0eade3a578466a3e5a3d915099a34ca7fc (diff)
downloadEssentials-c92ae00f9f9efce61eacdcf577b413217570c645.tar
Essentials-c92ae00f9f9efce61eacdcf577b413217570c645.tar.gz
Essentials-c92ae00f9f9efce61eacdcf577b413217570c645.tar.lz
Essentials-c92ae00f9f9efce61eacdcf577b413217570c645.tar.xz
Essentials-c92ae00f9f9efce61eacdcf577b413217570c645.zip
Update KeywordReplacer.java
-rw-r--r--Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java b/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
index 94882454c..e55af485f 100644
--- a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
+++ b/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
@@ -52,6 +52,7 @@ public class KeywordReplacer implements IText
user.setDisplayNick();
displayName = user.getDisplayName();
ipAddress = user.getAddress() == null || user.getAddress().getAddress() == null ? "" : user.getAddress().getAddress().toString();
+ address = user.getAddress() == null ? "" : user.getAddress().toString();
balance = NumberUtil.displayCurrency(user.getMoney(), ess);
mails = Integer.toString(user.getMails().size());
world = user.getLocation() == null || user.getLocation().getWorld() == null ? "" : user.getLocation().getWorld().getName();
@@ -141,7 +142,7 @@ public class KeywordReplacer implements IText
if (extended)
{
line = line.replace("{IP}", ipAddress);
- line = line.replace("{ADDRESS}", ipAddress);
+ line = line.replace("{ADDRESS}", address);
line = line.replace("{PLUGINS}", plugins);
line = line.replace("{VERSION}", version);
}