Skip to content

Commit 1b89652

Browse files
authored
Allow passing a reason to the shutdown command (#6828)
* Allow passing a reason to the shutdown command * unused
1 parent c766e79 commit 1b89652

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Resources/Locale/en-US/commands.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ cmd-restart-desc = Gracefully restarts the server (not just the round).
386386
cmd-restart-help = Usage: {$command}
387387
388388
cmd-shutdown-desc = Gracefully shuts down the server.
389-
cmd-shutdown-help = Usage: {$command}
389+
cmd-shutdown-help = Usage: {$command} [<Reason>]
390390
391391
cmd-saveconfig-desc = Saves the server configuration to the config file.
392392
cmd-saveconfig-help = Usage: {$command}

Robust.Server/Console/Commands/SysCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sealed partial class ShutdownCommand : LocalizedCommands
3030

3131
public override void Execute(IConsoleShell shell, string argStr, string[] args)
3232
{
33-
_server.Shutdown(null);
33+
_server.Shutdown(argStr[$"{Command} ".Length..].Trim());
3434
}
3535
}
3636

0 commit comments

Comments
 (0)