mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-05 06:51:37 +01:00
Make it so both {world} and {worldname} work for both keyword parsers.
This commit is contained in:
parent
af02a28ce5
commit
5dbf4f5a00
@ -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}");
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user