Files
crystall-punk-14/Content.Server/GameTicking/Commands/EndRoundCommand.cs

25 lines
690 B
C#
Raw Normal View History

2022-05-13 00:59:03 -07:00
using Content.Server.Administration;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.GameTicking.Commands;
[AdminCommand(AdminFlags.Round)]
public sealed class EndRoundCommand : LocalizedEntityCommands
{
[Dependency] private readonly GameTicker _gameTicker = default!;
public override string Command => "endround";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (_gameTicker.RunLevel != GameRunLevel.InRound)
{
shell.WriteLine(Loc.GetString("shell-can-only-run-while-round-is-active"));
return;
}
_gameTicker.EndRound();
}
2021-06-09 22:19:39 +02:00
}