diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 7deccc50..6d690655 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -55,10 +55,10 @@ namespace TShockAPI public int TileThreshold = 120; [Description("#.#.#. = Red/Blue/Green - RGB Colors for the Admin Chat Color. Max value: 255")] public float[] SuperAdminChatRGB = { 255, 0, 0 }; - [Description("The Chat Prefix before an admin speaks. eg. *The prefix was set to \"(Admin) \", so.. (Admin) : Hi! Note: If you put a space after the prefix, it will look like this: (Admin) " + text, - tsplr.Group.R, tsplr.Group.G, - tsplr.Group.B); - e.Handled = true; - return; - } - if (text.StartsWith("/")) { try @@ -569,10 +560,9 @@ namespace TShockAPI } else { - TShock.Utils.Broadcast("{2}<{0}> {1}".SFormat(tsplr.Name, text, Config.ChatDisplayGroup ? "[{0}] ".SFormat(tsplr.Group.Name) : ""), + TShock.Utils.Broadcast("{0}{1}{2}: {3}".SFormat(tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix, text), tsplr.Group.R, tsplr.Group.G, tsplr.Group.B); - //Log.Info(string.Format("{0} said: {1}", tsplr.Name, text)); e.Handled = true; } }