Allow uppercase variables

This commit is contained in:
Josh Roy 2021-07-01 11:02:27 -04:00
parent 711f701d62
commit 4ce38bde36
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ public class DiscordSettings implements IConf {
content = format ? FormatUtil.replaceFormat(content) : FormatUtil.stripFormat(content);
for (int i = 0; i < arguments.length; i++) {
content = content.replace("{" + arguments[i] + "}", "{" + i + "}");
content = content.replace("{" + arguments[i].toUpperCase() + "}", "{" + i + "}");
}
return new MessageFormat(content);
}