Evac shuttle (#8931)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Shuttles.Systems;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Shared.Console;
|
||||
|
||||
namespace Content.Server.Shuttles.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// Calls in the emergency shuttle.
|
||||
/// </summary>
|
||||
[AdminCommand(AdminFlags.Fun)]
|
||||
public sealed class DockEmergencyShuttleCommand : IConsoleCommand
|
||||
{
|
||||
public string Command => "dockemergencyshuttle";
|
||||
public string Description => Loc.GetString("emergency-shuttle-command-dock-desc");
|
||||
public string Help => $"{Command}";
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<ShuttleSystem>();
|
||||
system.CallEmergencyShuttle();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user