-Made the broadcast color configurable.

-Broadcast color defaults to Aquamarine now.
This commit is contained in:
CoderCow 2013-07-22 11:41:52 +02:00
parent d1f1e422a0
commit 5d2be35690
2 changed files with 7 additions and 3 deletions

View file

@ -1289,7 +1289,8 @@ 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;
}

View file

@ -253,6 +253,9 @@ namespace TShockAPI
[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};
/// <summary>
/// Reads a configuration file from a given path
/// </summary>