mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-27 01:40:48 +08:00
Allow uppercase variables
This commit is contained in:
parent
711f701d62
commit
4ce38bde36
@ -277,6 +277,7 @@ public class DiscordSettings implements IConf {
|
|||||||
content = format ? FormatUtil.replaceFormat(content) : FormatUtil.stripFormat(content);
|
content = format ? FormatUtil.replaceFormat(content) : FormatUtil.stripFormat(content);
|
||||||
for (int i = 0; i < arguments.length; i++) {
|
for (int i = 0; i < arguments.length; i++) {
|
||||||
content = content.replace("{" + arguments[i] + "}", "{" + i + "}");
|
content = content.replace("{" + arguments[i] + "}", "{" + i + "}");
|
||||||
|
content = content.replace("{" + arguments[i].toUpperCase() + "}", "{" + i + "}");
|
||||||
}
|
}
|
||||||
return new MessageFormat(content);
|
return new MessageFormat(content);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user