Make it so both {world} and {worldname} work for both keyword parsers.

This commit is contained in:
KHobbits 2013-12-07 23:58:47 +00:00
parent af02a28ce5
commit 5dbf4f5a00
2 changed files with 3 additions and 0 deletions

View File

@ -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}");

View File

@ -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),