* PROJECT 0 WARNINGS: Resolve `'EntitySystem.Get<T>()' is obsolete` in content * pass entman * dog ass test * webeditor
28 lines
787 B
C#
28 lines
787 B
C#
using Content.Server.GameTicking;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Administration.Commands;
|
|
|
|
[AdminCommand(AdminFlags.VarEdit)]
|
|
public sealed class ThrowScoreboardCommand : IConsoleCommand
|
|
{
|
|
[Dependency] private readonly IEntityManager _e = default!;
|
|
|
|
public string Command => "throwscoreboard";
|
|
|
|
public string Description => Loc.GetString("throw-scoreboard-command-description");
|
|
|
|
public string Help => Loc.GetString("throw-scoreboard-command-help-text");
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
shell.WriteLine(Help);
|
|
return;
|
|
}
|
|
_e.System<GameTicker>().ShowRoundEndScoreboard();
|
|
}
|
|
}
|