summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-12-07 23:58:47 +0000
committerKHobbits <rob@khobbits.co.uk>2013-12-07 23:58:47 +0000
commit5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833 (patch)
tree33e3325857c4745861f37afc34bd906d1accf427
parentaf02a28ce5fb1bded8b3bd1785bb3c4ede1fde39 (diff)
downloadEssentials-5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833.tar
Essentials-5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833.tar.gz
Essentials-5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833.tar.lz
Essentials-5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833.tar.xz
Essentials-5dbf4f5a00ecfaa6307a54446b77e67c8ccc0833.zip
Make it so both {world} and {worldname} work for both keyword parsers.
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index ec9bfd949..3ce7b9b99 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -416,6 +416,7 @@ public class Settings implements net.ess3.api.ISettings
mFormat = mFormat.replace("{DISPLAYNAME}", "%1$s");
mFormat = mFormat.replace("{MESSAGE}", "%2$s");
mFormat = mFormat.replace("{GROUP}", "{0}");
+ mFormat = mFormat.replace("{WORLD}", "{1}");
mFormat = mFormat.replace("{WORLDNAME}", "{1}");
mFormat = mFormat.replace("{SHORTWORLDNAME}", "{2}");
mFormat = mFormat.replace("{TEAMPREFIX}", "{3}");
diff --git a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java b/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
index d936c4b10..193700adc 100644
--- a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
+++ b/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java
@@ -159,6 +159,7 @@ public class KeywordReplacer implements IText
}
break;
case WORLD:
+ case WORLDNAME:
if (user != null)
{
final Location location = user.getLocation();
@@ -368,6 +369,7 @@ enum KeywordType
BALANCE(KeywordCachable.CACHEABLE),
MAILS(KeywordCachable.CACHEABLE),
WORLD(KeywordCachable.CACHEABLE),
+ WORLDNAME(KeywordCachable.CACHEABLE),
ONLINE(KeywordCachable.CACHEABLE),
UNIQUE(KeywordCachable.CACHEABLE),
WORLDS(KeywordCachable.CACHEABLE),