Files
S.P.L.U.R.T-Station-13/modular_sand/code/modules/tgs/chat_commands.dm
2023-01-15 00:40:48 -03:00

26 lines
841 B
Plaintext

/datum/tgs_chat_command/who
name = "who"
help_text = "Lists everyone currently on the server"
/datum/tgs_chat_command/who/Run(datum/tgs_chat_user/sender, params)
return tgswho()
/datum/tgs_chat_command/awho
name = "awho"
help_text = "Lists everyone + sneaky admins currently on the server"
admin_only = TRUE
/datum/tgs_chat_command/awho/Run(datum/tgs_chat_user/sender, params)
return tgsadminwho()
/datum/tgs_chat_command/restart
name = "restart"
help_text = "Forces a restart on the server"
admin_only = TRUE
/datum/tgs_chat_command/restart/Run(datum/tgs_chat_user/sender)
. = "Restarting."
to_chat(world, span_boldwarning("Server restart - Initialized by [sender.friendly_name] on Discord."))
send2adminchat("Server", "[sender.friendly_name] forced a restart.")
addtimer(CALLBACK(src, world.TgsEndProcess()), 1 SECONDS)