Add ability for admins to change certain cvars via command. (#35105)

* Add ability for admins to change certain cvars via command.

* Cleanup

* More cleanup.

* Even more cleanup.

* WAITER! WAITER! ONE MORE COMMIT PLEASE!

* Remove requirement for Admin AdminFlag

Not needed as the command checks for the perms.

* Add search function to CVars and help text

* Move to controller instead.

* Add another cvar for testing

* Remove unused comment

* Move to Post Server Initialize

LoC does not work at the earlier stages of server initalization

* Remove unneeded comment

We clear out list so its no longer needed
This commit is contained in:
Simon
2025-02-16 10:06:13 +01:00
committed by GitHub
parent 5e2015e342
commit 29029d2586
9 changed files with 414 additions and 0 deletions

View File

@@ -449,4 +449,9 @@ public enum LogType
/// An atmos networked device (such as a vent or pump) has had its settings changed, usually through an air alarm
/// </summary>
AtmosDeviceSetting = 97,
/// <summary>
/// Commands related to admemes. Stuff like config changes, etc.
/// </summary>
AdminCommands = 98,
}