From 0925327afff2f4d13c04e77333c4ecdfc72bbc3b Mon Sep 17 00:00:00 2001 From: Eva <66324759+saxnbt@users.noreply.github.com> Date: Wed, 23 Mar 2022 23:24:22 +0000 Subject: [PATCH] Fix color codes in preview? --- .../StevenLawson/TotalFreedomMod/commands/Command_myadmin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_myadmin.java b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_myadmin.java index 9870bd1..df1eb66 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_myadmin.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_myadmin.java @@ -31,7 +31,7 @@ public class Command_myadmin extends FreedomCommand { if ("setlogin".equalsIgnoreCase(args[0])) { final String inputMessage = StringUtils.join(args, " ", 1, args.length); // Parse the input provided. playerMsg(ChatColor.GRAY + "Set your custom login message."); // Notify player that the login message has been set. - playerMsg(ChatColor.GRAY + "Your login message will show up as: \n" + ChatColor.AQUA + sender_p.getPlayer().getName() + " is " + inputMessage); + playerMsg(ChatColor.GRAY + "Your login message will show up as: \n" + ChatColor.AQUA + sender_p.getPlayer().getName() + " is " + ChatColor.translateAlternateColorCodes('&', inputMessage)); AdminList.getEntry(uuid).setCustomLoginMessage(inputMessage); // Set the custom login message to the value. AdminList.save(AdminList.getEntry(uuid)); // Save the modified value to the super admin configuration.