From ea6ec655ce3ae8a8fde9d9d2f5611d7854a3168b Mon Sep 17 00:00:00 2001 From: nervere <26285377+nervere@users.noreply.github.com> Date: Sun, 30 Jun 2019 20:19:07 -0400 Subject: [PATCH] Adds CTF and Reboot buttons to check antags panel (#44851) Makes dealing with end of round grief easier and faster for admins. --- code/modules/admin/check_antagonists.dm | 2 ++ code/modules/admin/topic.dm | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/check_antagonists.dm b/code/modules/admin/check_antagonists.dm index eaf14359ecd..fc7bc11463b 100644 --- a/code/modules/admin/check_antagonists.dm +++ b/code/modules/admin/check_antagonists.dm @@ -165,6 +165,8 @@ dat += "If limits past: [SSticker.mode.round_ends_with_antag_death ? "End The Round" : "Continue As Extended"]
" dat += "End Round Now
" dat += "[SSticker.delay_end ? "End Round Normally" : "Delay Round End"]
" + dat += "Enable/Disable CTF
" + dat += "Reboot World
" dat += "Check Teams" var/connected_players = GLOB.clients.len var/lobby_players = 0 diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index cfb5887267a..300e3f0f7b6 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1790,12 +1790,26 @@ log_query_debug("[usr.key] | [response]") else if(answer == "no") log_query_debug("[usr.key] | Reported no server hang") + + else if(href_list["ctf_toggle"]) + if(!check_rights(R_ADMIN)) + return + toggle_all_ctf(usr) + else if(href_list["rebootworld"]) + if(!check_rights(R_ADMIN)) + return + var/confirm = alert("Are you sure you want to reboot the server?", "Confirm Reboot", "Yes", "No") + if(confirm == "No") + return + if(confirm == "Yes") + restart() + else if(href_list["check_teams"]) if(!check_rights(R_ADMIN)) return check_teams() - + else if(href_list["team_command"]) if(!check_rights(R_ADMIN)) return