From cc598d873ce298e92528662da2b40bb38295c4ba Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Tue, 12 Dec 2017 10:56:00 -0800 Subject: [PATCH] Adds a chat command to reload admins in case someone locks themselves out. (#33458) * Update chat_commands.dm * skype --- code/modules/admin/chat_commands.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/modules/admin/chat_commands.dm b/code/modules/admin/chat_commands.dm index d2709233e7..650bcd475d 100644 --- a/code/modules/admin/chat_commands.dm +++ b/code/modules/admin/chat_commands.dm @@ -81,3 +81,13 @@ GLOBAL_LIST(round_end_notifiees) LAZYINITLIST(GLOB.round_end_notifiees) GLOB.round_end_notifiees[sender] = TRUE return "I will notify [sender] when the round ends." + +/datum/server_tools_command/reload_admins + name = "reload_admins" + help_text = "Forces the server to reload admins." + admin_only = TRUE + +/datum/server_tools_command/reload_admins/Run(sender, params) + load_admins() + log_admin("[sender] reloaded admins via chat command.") + return "Admins reloaded."