Make the mapping command take the next available map id if one isn't given (#1998)

* Make the mapping command take the next available map id if one isn't given, draft

* Remove todo

* Update clientside mapping command

* Address reviews
This commit is contained in:
DrSmugleaf
2020-09-10 00:12:39 +02:00
committed by GitHub
parent 96a04d271a
commit f7a5bad839
2 changed files with 38 additions and 10 deletions

View File

@@ -90,11 +90,11 @@ namespace Content.Client.Commands
{
public string Command => "mapping";
public string Description => "Creates and teleports you to a new uninitialized map for mapping.";
public string Help => $"Usage: {Command} <id> <mapname>";
public string Help => $"Usage: {Command} <mapname> / {Command} <id> <mapname>";
public bool Execute(IDebugConsole console, params string[] args)
{
if (args.Length != 2)
if (args.Length == 0)
{
console.AddLine(Help);
return false;