mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +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
27 lines
786 B
C#
27 lines
786 B
C#
using Content.Server.GameTicking;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Administration.Commands;
|
|
|
|
[AdminCommand(AdminFlags.VarEdit)]
|
|
public sealed partial class ThrowScoreboardCommand : IConsoleCommand
|
|
{
|
|
[Dependency] private 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();
|
|
}
|
|
}
|