Added back in region manager.
Added back in spawnmob commands, including the obsolete boss commands.
This commit is contained in:
parent
fda287d78d
commit
88394ac561
6 changed files with 1438 additions and 8 deletions
|
|
@ -1659,6 +1659,23 @@ namespace TShockAPI
|
|||
if (args.Player.Dead && TShock.Config.PreventDeadModification)
|
||||
return true;
|
||||
|
||||
if (args.Player.AwaitingName)
|
||||
{
|
||||
var protectedregions = TShock.Regions.InAreaRegionName(tileX, tileY);
|
||||
if (protectedregions.Count == 0)
|
||||
{
|
||||
args.Player.SendMessage("Region is not protected", Color.Yellow);
|
||||
}
|
||||
else
|
||||
{
|
||||
string regionlist = string.Join(",", protectedregions.ToArray());
|
||||
args.Player.SendMessage("Region Name(s): " + regionlist, Color.Yellow);
|
||||
}
|
||||
args.Player.SendTileSquare(tileX, tileY);
|
||||
args.Player.AwaitingName = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args.Player.AwaitingTempPoint > 0)
|
||||
{
|
||||
args.Player.TempPoints[args.Player.AwaitingTempPoint - 1].X = tileX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue