Updated /region name to tell you if region is not protected
This commit is contained in:
parent
a9a153ddb6
commit
48ef0ee1a5
1 changed files with 8 additions and 1 deletions
|
|
@ -285,7 +285,14 @@ namespace TShockAPI
|
|||
|
||||
if (args.Player.AwaitingName)
|
||||
{
|
||||
args.Player.SendMessage("Region Name: " + TShock.Regions.InAreaRegionName(x, y), Color.Yellow);
|
||||
if (TShock.Regions.InAreaRegionName(x, y) == null)
|
||||
{
|
||||
args.Player.SendMessage("Region is not protected", Color.Yellow);
|
||||
}
|
||||
else
|
||||
{
|
||||
args.Player.SendMessage("Region Name: " + TShock.Regions.InAreaRegionName(x, y), Color.Yellow);
|
||||
}
|
||||
args.Player.SendTileSquare(x, y);
|
||||
args.Player.AwaitingName = false;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue