diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 9db26c72..238ec52b 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1288,8 +1288,9 @@ namespace TShockAPI { message += " " + args.Parameters[i]; } - - TShock.Utils.Broadcast("(Server Broadcast)" + message, Color.Red); + + Color color = new Color(TShock.Config.BroadcastRGB[0], TShock.Config.BroadcastRGB[1], TShock.Config.BroadcastRGB[2]); + TShock.Utils.Broadcast("(Server Broadcast)" + message, color); return; } diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index dec09a6d..304de298 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -251,7 +251,10 @@ namespace TShockAPI [Description("The path of the directory where logs should be written into.")] public string LogPath = "tshock"; - [Description("Prevents players from placing tiles with an invalid style.")] public bool PreventInvalidPlaceStyle = true; + [Description("Prevents players from placing tiles with an invalid style.")] public bool PreventInvalidPlaceStyle = true; + + [Description("#.#.#. = Red/Blue/Green - RGB Colors for broadcasts. Max value: 255.")] public float[] BroadcastRGB = + {127,255,212}; /// /// Reads a configuration file from a given path