-Added "-p" parameter to "/region name" for persistent mode, type "/region name" without "-p" to disable.

-Added "-u" parameter to "/region name". Use to include unprotected regions in the listing.
-Added "-z" parameter to "/region name". Use to include z indexes in the listing.
-Regions displayed by "/region name" are now sorted by z index.
This commit is contained in:
CoderCow 2013-07-01 18:23:56 +02:00
parent 6fa744e2b5
commit 8c23d68727
3 changed files with 59 additions and 9 deletions

View file

@ -2577,6 +2577,7 @@ namespace TShockAPI
{
args.Player.SendMessage("Hit a block to get the name of the region", Color.Yellow);
args.Player.AwaitingName = true;
args.Player.AwaitingNameParameters = args.Parameters.Skip(1).ToArray();
}
break;
}
@ -3026,7 +3027,7 @@ namespace TShockAPI
"clear - Clears the temporary region points.",
"define [name] - Defines the region with the given name.",
"delete [name] - Deletes the given region.",
"name - Shows the name of the region at the given point.",
"name [-u][-z][-p] - Shows the name of the region at the given point.",
"list - Lists all regions.",
"resize [region] [u/d/l/r] [amount] - Resizes a region.",
"allow [user] [region] - Allows a user to a region.",