Fix issue with chat not formatting.

This commit is contained in:
Ivan 2019-08-22 18:07:26 -04:00
parent f2f3720de2
commit d21c5f0e9d

View File

@ -57,12 +57,12 @@ public class ChatManager extends FreedomService
if (plugin.al.isAdmin(player)) if (plugin.al.isAdmin(player))
{ {
// Format color // Format color
message = FUtil.colorize(message);
message = message.replaceAll(ChatColor.BOLD.toString(), "&l"); message = message.replaceAll(ChatColor.BOLD.toString(), "&l");
message = message.replaceAll(ChatColor.MAGIC.toString(), "&k"); message = message.replaceAll(ChatColor.MAGIC.toString(), "&k");
message = message.replaceAll(ChatColor.ITALIC.toString(), "&o"); message = message.replaceAll(ChatColor.ITALIC.toString(), "&o");
message = message.replaceAll(ChatColor.UNDERLINE.toString(), "&n"); message = message.replaceAll(ChatColor.UNDERLINE.toString(), "&n");
message = message.replaceAll(ChatColor.STRIKETHROUGH.toString(), "&m"); message = message.replaceAll(ChatColor.STRIKETHROUGH.toString(), "&m");
message = FUtil.colorize(message);
} }
else else
{ {