Add Vault prefix/suffix support to EssXChat (#1663)

* Add Vault prefix/suffix support to EssXChat

Includes an example of how to use it in the config.
This commit is contained in:
md678685 2018-01-21 09:37:30 +00:00 committed by Trent Hensler
parent 938f94e130
commit 738efe8c50
3 changed files with 12 additions and 1 deletions

View file

@ -427,6 +427,8 @@ public class Settings implements net.ess3.api.ISettings {
mFormat = mFormat.replace("{TEAMPREFIX}", "{3}");
mFormat = mFormat.replace("{TEAMSUFFIX}", "{4}");
mFormat = mFormat.replace("{TEAMNAME}", "{5}");
mFormat = mFormat.replace("{PREFIX}", "{6}");
mFormat = mFormat.replace("{SUFFIX}", "{7}");
mFormat = "§r".concat(mFormat);
chatFormats.put(group, mFormat);
}