mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-22 16:37:25 +00:00
Allow uppercase variables
This commit is contained in:
parent
711f701d62
commit
4ce38bde36
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue