fixed debug release check (#562)
This commit is contained in:
@@ -224,8 +224,6 @@ namespace Content.Server.GameTicking
|
|||||||
if (LobbyEnabled && status != PlayerGameStatus.ReadyToPlay) continue;
|
if (LobbyEnabled && status != PlayerGameStatus.ReadyToPlay) continue;
|
||||||
if (!_playerManager.TryGetSessionById(userId, out var session)) continue;
|
if (!_playerManager.TryGetSessionById(userId, out var session)) continue;
|
||||||
|
|
||||||
#if FULL_RELEASE // dont deadmin me in debug
|
|
||||||
|
|
||||||
var autoDeAdmin = _cfg.GetCVar(CCVars.AdminDeadminOnJoin);
|
var autoDeAdmin = _cfg.GetCVar(CCVars.AdminDeadminOnJoin);
|
||||||
|
|
||||||
if (autoDeAdmin && _adminManager.IsAdmin(session))
|
if (autoDeAdmin && _adminManager.IsAdmin(session))
|
||||||
@@ -233,8 +231,6 @@ namespace Content.Server.GameTicking
|
|||||||
_adminManager.DeAdmin(session);
|
_adminManager.DeAdmin(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (stalinBunkerEnabled)
|
if (stalinBunkerEnabled)
|
||||||
{
|
{
|
||||||
await _stalinManager.RefreshUsersData();
|
await _stalinManager.RefreshUsersData();
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ arrivals = false
|
|||||||
|
|
||||||
[admin]
|
[admin]
|
||||||
see_own_notes = true
|
see_own_notes = true
|
||||||
|
deadmin_on_join = false
|
||||||
|
|
||||||
[worldgen]
|
[worldgen]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|||||||
Reference in New Issue
Block a user