Adds protected regions. Use /region help ingame for extra help
This commit is contained in:
parent
8257c1ad18
commit
ad352492a9
5 changed files with 344 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue