2020-12-03 03:40:47 +01:00
|
|
|
|
using Content.Server.Administration;
|
|
|
|
|
|
using Content.Shared.Administration;
|
2021-09-26 15:18:45 +02:00
|
|
|
|
using Content.Shared.Popups;
|
2021-02-01 16:49:43 -08:00
|
|
|
|
using Robust.Shared.Console;
|
2020-12-03 03:40:47 +01:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
2021-09-26 15:18:45 +02:00
|
|
|
|
namespace Content.Server.Popups
|
2020-12-03 03:40:47 +01:00
|
|
|
|
{
|
|
|
|
|
|
[AdminCommand(AdminFlags.Debug)]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class PopupMsgCommand : IConsoleCommand
|
2020-12-03 03:40:47 +01:00
|
|
|
|
{
|
|
|
|
|
|
public string Command => "srvpopupmsg";
|
|
|
|
|
|
public string Description => "";
|
|
|
|
|
|
public string Help => "";
|
|
|
|
|
|
|
2021-02-01 16:49:43 -08:00
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
2020-12-03 03:40:47 +01:00
|
|
|
|
{
|
|
|
|
|
|
var source = EntityUid.Parse(args[0]);
|
|
|
|
|
|
var viewer = EntityUid.Parse(args[1]);
|
|
|
|
|
|
var msg = args[2];
|
|
|
|
|
|
|
2021-12-06 00:52:58 +01:00
|
|
|
|
source.PopupMessage(viewer, msg);
|
2020-12-03 03:40:47 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|