mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
34 lines
744 B
Plaintext
34 lines
744 B
Plaintext
/world/New()
|
|
log << "About to call TgsNew()"
|
|
TgsNew(minimum_required_security_level = TGS_SECURITY_ULTRASAFE)
|
|
log << "About to call StartAsync()"
|
|
StartAsync()
|
|
|
|
/proc/StartAsync()
|
|
set waitfor = FALSE
|
|
Run()
|
|
|
|
/proc/Run()
|
|
world.log << "sleep"
|
|
sleep(50)
|
|
world.TgsInitializationComplete()
|
|
|
|
/world/Topic(T, Addr, Master, Keys)
|
|
TGS_TOPIC
|
|
|
|
/world/Reboot(reason)
|
|
TgsReboot()
|
|
|
|
/datum/tgs_chat_command/reboot
|
|
name = "echo"
|
|
help_text = "echos input parameters"
|
|
|
|
/datum/tgs_chat_command/reboot/Run(datum/tgs_chat_user/sender, params)
|
|
set waitfor = FALSE
|
|
RebootAsync()
|
|
return "Echo: [sender.channel.connection_name]|[sender.channel.friendly_name]|[sender.friendly_name]: [params]. Rebooting..."
|
|
|
|
/proc/RebootAsync()
|
|
sleep(30)
|
|
world.Reboot()
|