CCVars.Whitelist.cs 885 B

12345678910111213141516171819
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// Controls whether the server will deny any players that are not whitelisted in the DB.
  7. /// </summary>
  8. public static readonly CVarDef<bool> WhitelistEnabled =
  9. CVarDef.Create("whitelist.enabled", false, CVar.SERVERONLY);
  10. /// <summary>
  11. /// Specifies the whitelist prototypes to be used by the server. This should be a comma-separated list of prototypes.
  12. /// If a whitelists conditions to be active fail (for example player count), the next whitelist will be used instead. If no whitelist is valid, the player will be allowed to connect.
  13. /// </summary>
  14. public static readonly CVarDef<string> WhitelistPrototypeList =
  15. CVarDef.Create("whitelist.prototype_list", "basicWhitelist", CVar.SERVERONLY);
  16. }