diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 6e37f61b..547b0711 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -4507,6 +4507,13 @@ namespace TShockAPI var name = "Fail"; var x = args.Player.TileX; var y = args.Player.TileY + 3; + + if (!TShock.Regions.CanBuild(x, y, args.Player)) + { + args.Player.SendErrorMessage("You're not allowed to change tiles here!"); + return; + } + switch (args.Parameters[0].ToLower()) { case "tree":