Adds protected regions. Use /region help ingame for extra help

This commit is contained in:
Twitchy 2011-06-21 17:47:36 +12:00
parent 8257c1ad18
commit ad352492a9
5 changed files with 344 additions and 0 deletions

View file

@ -216,6 +216,12 @@ namespace TShockAPI
return true;
}
}
if (!args.Player.Group.HasPermission("editspawn") && RegionManager.InProtectedArea(x, y))
{
args.Player.SendMessage("Region protected from changes.", Color.Red);
args.Player.SendTileSquare(x, y);
return true;
}
if (ConfigurationManager.DisableBuild)
{
if (!args.Player.Group.HasPermission("editspawn"))