2022-06-23 16:32:06 +07:00
|
|
|
|
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
|
|
|
|
|
|
{
|
2024-05-12 17:34:52 -07:00
|
|
|
|
[Dependency] private readonly IEntityManager _e = default!;
|
|
|
|
|
|
|
2022-06-23 16:32:06 +07:00
|
|
|
|
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;
|
|
|
|
|
|
}
|
2024-05-12 17:34:52 -07:00
|
|
|
|
_e.System<GameTicker>().ShowRoundEndScoreboard();
|
2022-06-23 16:32:06 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|