]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add ability for admins to change certain cvars via command. (#35105)
authorSimon <63975668+Simyon264@users.noreply.github.com>
Sun, 16 Feb 2025 09:06:13 +0000 (10:06 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 09:06:13 +0000 (10:06 +0100)
commit29029d2586a0937a2c04ed0421189110a97a3c6a
tree9c7c941e4d48d137dac901ee507fcb1476da7634
parent5e2015e3423e64e2f36b0d555430ce8d1491793e
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
Content.Server/Administration/Commands/ChangeCvarCommand.cs [new file with mode: 0644]
Content.Server/Administration/Managers/CVarControlManager.cs [new file with mode: 0644]
Content.Server/Entry/EntryPoint.cs
Content.Server/IoC/ServerContentIoC.cs
Content.Shared.Database/LogType.cs
Content.Shared/CCVar/CCVars.cs
Content.Shared/CCVar/CVarAccess/CVarControl.cs [new file with mode: 0644]
Resources/Locale/en-US/administration/commands/change-cvar-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/cvar/cvar-help.ftl [new file with mode: 0644]