Add cvar for events (#2478)

There's also the existing events command as well that's separate. I think there's value in having both? (Where mods can turn it on and off but not change the default?)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-11-06 04:04:07 +11:00
committed by GitHub
parent 14568bc10c
commit e62df15ef9
2 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ namespace Content.Shared
[CVarDefs]
public sealed class CCVars : CVars
{
public static readonly CVarDef<bool>
EventsEnabled = CVarDef.Create("events.enabled", false, CVar.ARCHIVE | CVar.SERVERONLY);
public static readonly CVarDef<bool>
GameLobbyEnabled = CVarDef.Create("game.lobbyenabled", false, CVar.ARCHIVE);