Files
wwdpublic/Content.Shared/CCVar/CCVars.Admin.Ahelp.cs
VMSolidus 8296f18101 Split All CVars Into Separate Files (#1587)
# Description

This PR splits all the CVars into separate files. Unfortunately I need
to hella clean this up by restoring all the CVars that are different on
EE, because cherrypicking it reset everything to Wizden's Defaults
(Including CVars that no longer exist on EE, and removing CVars from
systems I codeown now, such as Atmos, Guns, and Melee).

# Changelog

No changelog because this isn't player facing. :)

---------

Co-authored-by: Simon <63975668+Simyon264@users.noreply.github.com>

(cherry picked from commit 357f8378c09ccb9f172fc720fd61deb25bc168ea)
2025-01-20 21:08:12 +03:00

80 lines
3.5 KiB
C#

using Robust.Shared.Configuration;
namespace Content.Shared.CCVar;
public sealed partial class CCVars
{
/// <summary>
/// Ahelp rate limit values are accounted in periods of this size (seconds).
/// After the period has passed, the count resets.
/// </summary>
/// <seealso cref="AhelpRateLimitCount"/>
public static readonly CVarDef<float> AhelpRateLimitPeriod =
CVarDef.Create("ahelp.rate_limit_period", 2f, CVar.SERVERONLY);
/// <summary>
/// How many ahelp messages are allowed in a single rate limit period.
/// </summary>
/// <seealso cref="AhelpRateLimitPeriod"/>
public static readonly CVarDef<int> AhelpRateLimitCount =
CVarDef.Create("ahelp.rate_limit_count", 10, CVar.SERVERONLY);
/// <summary>
/// Should the administrator's position be displayed in ahelp.
/// If it is is false, only the admin's ckey will be displayed in the ahelp.
/// </summary>
/// <seealso cref="AdminUseCustomNamesAdminRank"/>
/// <seealso cref="AhelpAdminPrefixWebhook"/>
public static readonly CVarDef<bool> AhelpAdminPrefix =
CVarDef.Create("ahelp.admin_prefix", true, CVar.SERVERONLY);
/// <summary>
/// Should the administrator's position be displayed in the webhook.
/// If it is is false, only the admin's ckey will be displayed in webhook.
/// </summary>
/// <seealso cref="AdminUseCustomNamesAdminRank"/>
/// <seealso cref="AhelpAdminPrefix"/>
public static readonly CVarDef<bool> AhelpAdminPrefixWebhook =
CVarDef.Create("ahelp.admin_prefix_webhook", true, CVar.SERVERONLY);
/// <summary>
/// If an admin replies to users from discord, should it use their discord role color? (if applicable)
/// Overrides DiscordReplyColor and AdminBwoinkColor.
/// </summary>
public static readonly CVarDef<bool> UseDiscordRoleColor =
CVarDef.Create("admin.use_discord_role_color", false, CVar.SERVERONLY);
/// <summary>
/// If an admin replies to users from discord, should it use their discord role color? (if applicable)
/// Overrides DiscordReplyColor and AdminBwoinkColor.
/// </summary>
public static readonly CVarDef<bool> UseDiscordRoleName =
CVarDef.Create("admin.use_discord_role_name", false, CVar.SERVERONLY);
/// <summary>
/// The text before an admin's name when replying from discord to indicate they're speaking from discord.
/// </summary>
public static readonly CVarDef<string> DiscordReplyPrefix =
CVarDef.Create("admin.discord_reply_prefix", "(DC) ", CVar.SERVERONLY);
/// <summary>
/// The color of the names of admins. This is the fallback color for admins.
/// </summary>
public static readonly CVarDef<string> AdminBwoinkColor =
CVarDef.Create("admin.admin_bwoink_color", "red", CVar.SERVERONLY);
/// <summary>
/// The color of the names of admins who reply from discord. Leave empty to disable.
/// Overrides AdminBwoinkColor.
/// </summary>
public static readonly CVarDef<string> DiscordReplyColor =
CVarDef.Create("admin.discord_reply_color", string.Empty, CVar.SERVERONLY);
/// <summary>
/// Use the admin's Admin OOC color in bwoinks.
/// If either the ooc color or this is not set, uses the admin.admin_bwoink_color value.
/// </summary>
public static readonly CVarDef<bool> UseAdminOOCColorInBwoinks =
CVarDef.Create("admin.bwoink_use_admin_ooc_color", false, CVar.SERVERONLY);
}