using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Motd;
///
/// A command that can be used by any player to print the Message of the Day.
///
[AnyCommand]
public sealed class GetMotdCommand : LocalizedCommands
{
[Dependency] private readonly IEntityManager _entityManager = default!;
public override string Command => "get-motd";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_entityManager.EntitySysManager.GetEntitySystem().TrySendMOTD(shell);
}
}