[ChangeCVarCommand] Mapping Command (#35239)

[ChangeCVarCommand] MappingCommand
This commit is contained in:
Simon
2025-02-18 11:26:08 +01:00
committed by GitHub
parent 0f4ab0e84e
commit eff25810c5
4 changed files with 16 additions and 4 deletions

View File

@@ -117,8 +117,8 @@ namespace Content.Server.Mapping
}
// don't interrupt mapping with events or auto-shuttle
shell.ExecuteCommand("sudo cvar events.enabled false");
shell.ExecuteCommand("sudo cvar shuttle.auto_call_time 0");
shell.ExecuteCommand("changecvar events.enabled false");
shell.ExecuteCommand("changecvar shuttle.auto_call_time 0");
if (_cfg.GetCVar(CCVars.AutosaveEnabled))
shell.ExecuteCommand($"toggleautosave {mapId} {toLoad ?? "NEWMAP"}");