mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Fix issue with chat not formatting.
This commit is contained in:
parent
f2f3720de2
commit
d21c5f0e9d
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user