mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* 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
25 lines
877 B
C#
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"));
|
|
}
|
|
}
|