-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

@ -1288,8 +1288,9 @@ namespace TShockAPI
{ {
message += " " + args.Parameters[i]; 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; return;
} }

View file

@ -251,7 +251,10 @@ namespace TShockAPI
[Description("The path of the directory where logs should be written into.")] public string LogPath = "tshock"; [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};
/// <summary> /// <summary>
/// Reads a configuration file from a given path /// Reads a configuration file from a given path