From f2aebcddd16b0009a5326ef895611ba2d1baecd3 Mon Sep 17 00:00:00 2001 From: Atakku Date: Mon, 20 Jul 2026 13:16:26 +0200 Subject: [PATCH 1/2] Allow passing a reason to the shutdown command --- Resources/Locale/en-US/commands.ftl | 3 ++- Robust.Server/Console/Commands/SysCommands.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Resources/Locale/en-US/commands.ftl b/Resources/Locale/en-US/commands.ftl index fcafc42eedf..6f76cc0f447 100644 --- a/Resources/Locale/en-US/commands.ftl +++ b/Resources/Locale/en-US/commands.ftl @@ -386,7 +386,8 @@ cmd-restart-desc = Gracefully restarts the server (not just the round). cmd-restart-help = Usage: {$command} cmd-shutdown-desc = Gracefully shuts down the server. -cmd-shutdown-help = Usage: {$command} +cmd-shutdown-help = Usage: {$command} [] +cmd-shutdown-arg-reason = [reason] cmd-saveconfig-desc = Saves the server configuration to the config file. cmd-saveconfig-help = Usage: {$command} diff --git a/Robust.Server/Console/Commands/SysCommands.cs b/Robust.Server/Console/Commands/SysCommands.cs index 1b44c4a9be6..69e82161c3f 100644 --- a/Robust.Server/Console/Commands/SysCommands.cs +++ b/Robust.Server/Console/Commands/SysCommands.cs @@ -30,7 +30,7 @@ sealed partial class ShutdownCommand : LocalizedCommands public override void Execute(IConsoleShell shell, string argStr, string[] args) { - _server.Shutdown(null); + _server.Shutdown(argStr[$"{Command} ".Length..].Trim()); } } From cb5d69a16ee5accad153a068fe142b1d632774fd Mon Sep 17 00:00:00 2001 From: Atakku Date: Mon, 20 Jul 2026 13:25:15 +0200 Subject: [PATCH 2/2] unused --- Resources/Locale/en-US/commands.ftl | 1 - 1 file changed, 1 deletion(-) diff --git a/Resources/Locale/en-US/commands.ftl b/Resources/Locale/en-US/commands.ftl index 6f76cc0f447..9239c8c35fa 100644 --- a/Resources/Locale/en-US/commands.ftl +++ b/Resources/Locale/en-US/commands.ftl @@ -387,7 +387,6 @@ cmd-restart-help = Usage: {$command} cmd-shutdown-desc = Gracefully shuts down the server. cmd-shutdown-help = Usage: {$command} [] -cmd-shutdown-arg-reason = [reason] cmd-saveconfig-desc = Saves the server configuration to the config file. cmd-saveconfig-help = Usage: {$command}