mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-28 02:51:57 +01:00
Fix case sensitivity on {PLAYERLIST:group}
This commit is contained in:
parent
0a17489c9c
commit
7c686b4b58
@ -24,6 +24,7 @@ import static com.earth2me.essentials.textreader.KeywordType.DISPLAYNAME;
|
|||||||
import static com.earth2me.essentials.textreader.KeywordType.PLAYER;
|
import static com.earth2me.essentials.textreader.KeywordType.PLAYER;
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
@ -110,7 +111,7 @@ public class KeywordReplacer implements IText
|
|||||||
String subKeyword = "";
|
String subKeyword = "";
|
||||||
if (matchTokens.length > 1)
|
if (matchTokens.length > 1)
|
||||||
{
|
{
|
||||||
subKeyword = matchTokens[1];
|
subKeyword = matchTokens[1].toLowerCase(Locale.ENGLISH);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keywordCache.containsKey(validKeyword))
|
if (keywordCache.containsKey(validKeyword))
|
||||||
@ -241,9 +242,9 @@ public class KeywordReplacer implements IText
|
|||||||
{
|
{
|
||||||
replacer = outputList.get("");
|
replacer = outputList.get("");
|
||||||
}
|
}
|
||||||
else if (outputList.containsKey(matchTokens[1]))
|
else if (outputList.containsKey(matchTokens[1].toLowerCase(Locale.ENGLISH)))
|
||||||
{
|
{
|
||||||
replacer = outputList.get(matchTokens[1]);
|
replacer = outputList.get(matchTokens[1].toLowerCase(Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
else if (matchTokens.length > 2)
|
else if (matchTokens.length > 2)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user