diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 5cfed41b..e5fa3320 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -78,6 +78,18 @@ namespace TShockAPI [Description("Disables any building / placing of blocks.")] public bool DisableBuild; + /// SuperAdminChatRGB - The chat color for the superadmin group. + [Description("#.#.# = Red/Blue/Green - RGB Colors for the Admin Chat Color. Max value: 255.")] + public int[] SuperAdminChatRGB = { 255, 0, 0 }; + + /// SuperAdminChatPrefix - The superadmin chat prefix. + [Description("Super admin group chat prefix.")] + public string SuperAdminChatPrefix = "(Admin) "; + + /// SuperAdminChatSuffix - The superadmin chat suffix. + [Description("Super admin group chat suffix.")] + public string SuperAdminChatSuffix = ""; + /// BackupInterval - The backup frequency in minutes. [Description("Backup frequency in minutes. So, a value of 60 = 60 minutes. Backups are stored in the \\tshock\\backups folder.")] public int BackupInterval; diff --git a/TShockAPI/Group.cs b/TShockAPI/Group.cs index 448f8442..1eb5d48f 100644 --- a/TShockAPI/Group.cs +++ b/TShockAPI/Group.cs @@ -340,11 +340,11 @@ namespace TShockAPI public SuperAdminGroup() : base("superadmin") { - R = (byte)255; - G = (byte)255; - B = (byte)255; - Prefix = "(Super Admin) "; - Suffix = ""; + R = (byte)TShock.Config.SuperAdminChatRGB[0]; + G = (byte)TShock.Config.SuperAdminChatRGB[1]; + B = (byte)TShock.Config.SuperAdminChatRGB[2]; + Prefix = TShock.Config.SuperAdminChatPrefix; + Suffix = TShock.Config.SuperAdminChatSuffix; } ///