diff --git a/Content.Server/_Sunrise/PlanetPrison/PlanetPrisonStationSystem.cs b/Content.Server/_Sunrise/PlanetPrison/PlanetPrisonStationSystem.cs index 79edbe3ea74..343b322a0f8 100644 --- a/Content.Server/_Sunrise/PlanetPrison/PlanetPrisonStationSystem.cs +++ b/Content.Server/_Sunrise/PlanetPrison/PlanetPrisonStationSystem.cs @@ -71,6 +71,10 @@ private void OnPlanetPrisonStationInit(EntityUid uid, PlanetPrisonStationCompone return; } + var enable = _cfg.GetCVar(SunriseCCVars.MinPlayersEnable); + if (!enable) + return; + var minPlayers = _cfg.GetCVar(SunriseCCVars.MinPlayersPlanetPrison); if (_player.PlayerCount <= minPlayers) { diff --git a/Content.Shared/_Sunrise/SunriseCCVars/SunriseCCVars.cs b/Content.Shared/_Sunrise/SunriseCCVars/SunriseCCVars.cs index 2c328eeb642..1a1cf56af0d 100644 --- a/Content.Shared/_Sunrise/SunriseCCVars/SunriseCCVars.cs +++ b/Content.Shared/_Sunrise/SunriseCCVars/SunriseCCVars.cs @@ -200,6 +200,9 @@ public static readonly CVarDef * Planet Prison */ + public static readonly CVarDef MinPlayersEnable = + CVarDef.Create("planet_prison.enable", true, CVar.SERVERONLY); + public static readonly CVarDef MinPlayersPlanetPrison = CVarDef.Create("planet_prison.min_players", 60, CVar.SERVERONLY);