23 lines
631 B
C#
23 lines
631 B
C#
using Content.Server.Administration.Systems;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Toolshed;
|
|
|
|
namespace Content.Server.Administration.Toolshed;
|
|
|
|
[ToolshedCommand, AdminCommand(AdminFlags.Admin)]
|
|
public sealed class RejuvenateCommand : ToolshedCommand
|
|
{
|
|
private RejuvenateSystem? _rejuvenate;
|
|
[CommandImplementation]
|
|
public IEnumerable<EntityUid> Rejuvenate([PipedArgument] IEnumerable<EntityUid> input)
|
|
{
|
|
_rejuvenate ??= GetSys<RejuvenateSystem>();
|
|
|
|
foreach (var i in input)
|
|
{
|
|
_rejuvenate.PerformRejuvenate(i);
|
|
yield return i;
|
|
}
|
|
}
|
|
}
|