mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
20 lines
591 B
C#
20 lines
591 B
C#
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Motd;
|
|
|
|
/// <summary>
|
|
/// A command that can be used by any player to print the Message of the Day.
|
|
/// </summary>
|
|
[AnyCommand]
|
|
public sealed partial class GetMotdCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private IEntityManager _entityManager = default!;
|
|
|
|
public override string Command => "get-motd";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_entityManager.EntitySysManager.GetEntitySystem<MOTDSystem>().TrySendMOTD(shell);
|
|
}
|
|
}
|