mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
## About The Pull Request See title. ## Why It's Good For The Game Makes it easier for people to add new admin buttons, and also removes the giant ass ugly lists that are an affront to my eyes. Yes you are still able to call them manually via the verb bar   ## Changelog 🆑 refactor: Admin verbs are now datums with a dedicated panel handler admin: Admin verbs now come with a handy description when you hover over them! /🆑 --------- Signed-off-by: GitHub <noreply@github.com>
13 lines
676 B
Plaintext
13 lines
676 B
Plaintext
/// Verbs created to help server operators with generating certain config files.
|
|
|
|
ADMIN_VERB(server, generate_job_configuration, "", R_SERVER)
|
|
if(tgui_alert(usr, "This verb is not at all useful if you are not a server operator with access to the configuration folder. Do you wish to proceed?", "Generate jobconfig.toml for download", list("Yes", "No")) != "Yes")
|
|
return
|
|
|
|
if(!SSjob.generate_config(usr))
|
|
to_chat(usr, span_warning("Job configuration file could not be generated. Check the server logs / runtimes / above warning messages for more information."))
|
|
return
|
|
|
|
to_chat(usr, span_notice("Job configuration file generated. Download prompt should appear now."))
|
|
|