-Made the broadcast color configurable.
-Broadcast color defaults to Aquamarine now.
This commit is contained in:
parent
d1f1e422a0
commit
5d2be35690
2 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue