Allow more lobby parameters to be configured.
This commit is contained in:
@@ -190,21 +190,7 @@ namespace Content.Server.GameTicking
|
||||
|
||||
var ticker = IoCManager.Resolve<IGameTicker>();
|
||||
|
||||
Type presetType;
|
||||
switch (args[0])
|
||||
{
|
||||
case "DeathMatch":
|
||||
presetType = typeof(PresetDeathMatch);
|
||||
break;
|
||||
case "Sandbox":
|
||||
presetType = typeof(PresetSandbox);
|
||||
break;
|
||||
default:
|
||||
shell.SendText(player, "That is not a valid game preset!");
|
||||
return;
|
||||
}
|
||||
|
||||
ticker.SetStartPreset(presetType);
|
||||
ticker.SetStartPreset(args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user