1
0

CCVars.Admin.Ahelp.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// Ahelp rate limit values are accounted in periods of this size (seconds).
  7. /// After the period has passed, the count resets.
  8. /// </summary>
  9. /// <seealso cref="AhelpRateLimitCount"/>
  10. public static readonly CVarDef<float> AhelpRateLimitPeriod =
  11. CVarDef.Create("ahelp.rate_limit_period", 2f, CVar.SERVERONLY);
  12. /// <summary>
  13. /// How many ahelp messages are allowed in a single rate limit period.
  14. /// </summary>
  15. /// <seealso cref="AhelpRateLimitPeriod"/>
  16. public static readonly CVarDef<int> AhelpRateLimitCount =
  17. CVarDef.Create("ahelp.rate_limit_count", 10, CVar.SERVERONLY);
  18. /// <summary>
  19. /// Should the administrator's position be displayed in ahelp.
  20. /// If it is is false, only the admin's ckey will be displayed in the ahelp.
  21. /// </summary>
  22. /// <seealso cref="AdminUseCustomNamesAdminRank"/>
  23. /// <seealso cref="AhelpAdminPrefixWebhook"/>
  24. public static readonly CVarDef<bool> AhelpAdminPrefix =
  25. CVarDef.Create("ahelp.admin_prefix", false, CVar.SERVERONLY);
  26. /// <summary>
  27. /// Should the administrator's position be displayed in the webhook.
  28. /// If it is is false, only the admin's ckey will be displayed in webhook.
  29. /// </summary>
  30. /// <seealso cref="AdminUseCustomNamesAdminRank"/>
  31. /// <seealso cref="AhelpAdminPrefix"/>
  32. public static readonly CVarDef<bool> AhelpAdminPrefixWebhook =
  33. CVarDef.Create("ahelp.admin_prefix_webhook", false, CVar.SERVERONLY);
  34. }