mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:04:57 +00:00
Add color code support for chat format
This commit is contained in:
parent
583e8909e9
commit
792f3d0590
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ public class PlayerListener implements Listener {
|
|||
// Set the tag
|
||||
if (playerdata.getTag() != null) {
|
||||
//event.setFormat("<" + playerdata.getTag().replaceAll("%", "%%") + " %1$s> %2$s");
|
||||
event.setFormat(MainConfig.getString(ConfigurationEntry.CHAT_FORMAT).replace("{RANK}", playerdata.getTag().replaceAll("%", "%%")));
|
||||
event.setFormat(ChatColor.translateAlternateColorCodes('&', MainConfig.getString(ConfigurationEntry.CHAT_FORMAT)).replace("{RANK}", playerdata.getTag().replaceAll("%", "%%")));
|
||||
}
|
||||
|
||||
DiscordBridge.transmitMessage(String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()));
|
||||
|
|
Loading…
Reference in a new issue