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

@@ -0,0 +1,15 @@
cmd-changecvar-no-arguments = You must specify a cvar.
cmd-changecvar-cvar-not-registered = The cvar {$cvar} is not registered.
cmd-changecvar-cvar-not-allowed = You cannot change this cvar.
cmd-changecvar-value-out-of-range = The value is out of range. The range is {$min} to {$max}.
cmd-changecvar-desc = Change a cvar value.
cmd-changecvar-help = Usage: changecvar <cvar | ? | search> <value>
cmd-changecvar-available-cvars = Listing available cvars:
cmd-changecvar-no-cvars = No cvars found that you are allowed to change.
cmd-changecvar-success = CVar {$cvar} changed from "{$old}" to "{$value}".
cmd-changecvar-search-no-arguments = You must specify a search term.
cmd-changecvar-search-no-matches = No cvars found matching the search term.
cmd-changecvar-search-matches = Found {$count} cvars matching the search term:
cmd-changecvar-arg-name = <name | ? | search>