Цвар на отключение планетарнои тюрьмы
This commit is contained in:
parent
2a121fc5ce
commit
6a8317d76e
2 changed files with 7 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ public sealed class PlanetPrisonStationSystem : EntitySystem
|
|||
return;
|
||||
}
|
||||
|
||||
var enable = _cfg.GetCVar(SunriseCCVars.MinPlayersEnable);
|
||||
if (!enable)
|
||||
return;
|
||||
|
||||
var minPlayers = _cfg.GetCVar(SunriseCCVars.MinPlayersPlanetPrison);
|
||||
if (_player.PlayerCount <= minPlayers)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -200,6 +200,9 @@ public sealed class SunriseCCVars
|
|||
* Planet Prison
|
||||
*/
|
||||
|
||||
public static readonly CVarDef<bool> MinPlayersEnable =
|
||||
CVarDef.Create("planet_prison.enable", true, CVar.SERVERONLY);
|
||||
|
||||
public static readonly CVarDef<int> MinPlayersPlanetPrison =
|
||||
CVarDef.Create("planet_prison.min_players", 60, CVar.SERVERONLY);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue