CatStation/Content.Server/Shuttles/Commands/DelayShuttleRoundEndCommand.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

25 lines
877 B
C#

using Content.Server.Administration;
using Content.Server.Shuttles.Systems;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Shuttles.Commands;
/// <summary>
/// Delays the round from ending via the shuttle call. Can still be ended via other means.
/// </summary>
[AdminCommand(AdminFlags.Fun)]
public sealed partial class DelayRoundEndCommand : LocalizedEntityCommands
{
[Dependency] private EmergencyShuttleSystem _shuttleSystem = default!;
public override string Command => "delayroundend";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (_shuttleSystem.DelayEmergencyRoundEnd())
shell.WriteLine(Loc.GetString("emergency-shuttle-command-round-yes"));
else
shell.WriteLine(Loc.GetString("emergency-shuttle-command-round-no"));
}
}