Files
tbd-station-14/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs
2021-12-21 21:23:29 +01:00

30 lines
789 B
C#

using Content.Server.Administration;
using Content.Shared.Administration;
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Commands
{
[AdminCommand(AdminFlags.Round)]
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]);
}
}
}