Make the admin set OOC and LOOC buttons a toggle (#7152)

This commit is contained in:
Javier Guardia Fernández
2022-03-16 22:58:35 +01:00
committed by GitHub
parent 995c02169e
commit 8ee1503861
3 changed files with 39 additions and 5 deletions

View File

@@ -507,7 +507,7 @@ namespace Content.Shared.CCVar
* OOC
*/
public static readonly CVarDef<bool> OocEnabled = CVarDef.Create("ooc.enabled", true, CVar.NOTIFY);
public static readonly CVarDef<bool> OocEnabled = CVarDef.Create("ooc.enabled", true, CVar.NOTIFY | CVar.REPLICATED);
public static readonly CVarDef<bool> AdminOocEnabled =
CVarDef.Create("ooc.enabled_admin", true, CVar.NOTIFY);
@@ -516,7 +516,7 @@ namespace Content.Shared.CCVar
* LOOC
*/
public static readonly CVarDef<bool> LoocEnabled = CVarDef.Create("looc.enabled", true, CVar.NOTIFY);
public static readonly CVarDef<bool> LoocEnabled = CVarDef.Create("looc.enabled", true, CVar.NOTIFY | CVar.REPLICATED);
public static readonly CVarDef<bool> AdminLoocEnabled =
CVarDef.Create("looc.enabled_admin", true, CVar.NOTIFY);