Files
tbd-station-14/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs
2022-05-13 17:59:03 +10:00

28 lines
738 B
C#

using Content.Server.Administration;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.GameTicking.Commands
{
[AdminCommand(AdminFlags.Round)]
sealed class SetGamePresetCommand : IConsoleCommand
{
public string Command => "setgamepreset";
public string Description => "";
public string Help => "";
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (args.Length != 1)
{
shell.WriteLine("Need exactly one argument.");
return;
}
var ticker = EntitySystem.Get<GameTicker>();
ticker.SetGamePreset(args[0]);
}
}
}