Files
tbd-station-14/Content.Server/Popups/PopupMsgCommand.cs
2021-12-06 00:52:58 +01:00

26 lines
708 B
C#

using Content.Server.Administration;
using Content.Shared.Administration;
using Content.Shared.Popups;
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
namespace Content.Server.Popups
{
[AdminCommand(AdminFlags.Debug)]
public class PopupMsgCommand : IConsoleCommand
{
public string Command => "srvpopupmsg";
public string Description => "";
public string Help => "";
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var source = EntityUid.Parse(args[0]);
var viewer = EntityUid.Parse(args[1]);
var msg = args[2];
source.PopupMessage(viewer, msg);
}
}
}