easy (#906)
This commit is contained in:
@@ -11,27 +11,28 @@ namespace Content.Server.Administration.Commands
|
|||||||
[Dependency] private readonly IEntityManager _e = default!;
|
[Dependency] private readonly IEntityManager _e = default!;
|
||||||
|
|
||||||
public string Command => "readyall";
|
public string Command => "readyall";
|
||||||
public string Description => "Readies up all players in the lobby, except for observers.";
|
public string Description => "WD Disabled. Readies up all players in the lobby, except for observers.";
|
||||||
public string Help => $"{Command} | ̣{Command} <ready>";
|
public string Help => $"{Command} | ̣{Command} <ready>";
|
||||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||||
{
|
{
|
||||||
var ready = true;
|
// WD Disabled
|
||||||
|
// var ready = true;
|
||||||
|
|
||||||
if (args.Length > 0)
|
// if (args.Length > 0)
|
||||||
{
|
// {
|
||||||
ready = bool.Parse(args[0]);
|
// ready = bool.Parse(args[0]);
|
||||||
}
|
// }
|
||||||
|
|
||||||
var gameTicker = _e.System<GameTicker>();
|
// var gameTicker = _e.System<GameTicker>();
|
||||||
|
|
||||||
|
|
||||||
if (gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
// if (gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
||||||
{
|
// {
|
||||||
shell.WriteLine("This command can only be ran while in the lobby!");
|
// shell.WriteLine("This command can only be ran while in the lobby!");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
gameTicker.ToggleReadyAll(ready);
|
// gameTicker.ToggleReadyAll(ready);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user