diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 99449a80..1dc8574e 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1373,10 +1373,10 @@ namespace TShockAPI args.Player.SendMessage("Could not find specified region", Color.Red); } else - args.Player.SendMessage("Invalid syntax! Proper syntax: /region protected [name] [true/false]", Color.Red); + args.Player.SendMessage("Invalid syntax! Proper syntax: /region protect [name] [true/false]", Color.Red); } else - args.Player.SendMessage("Invalid syntax! Proper syntax: /region protected [name] [true/false]", Color.Red); + args.Player.SendMessage("Invalid syntax! Proper syntax: /region protect [name] [true/false]", Color.Red); break; } case "delete": diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index ced374b3..2786989e 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -336,7 +336,7 @@ namespace TShockAPI.DB public bool InArea(Rectangle point) { - if (RegionArea.Intersects(point)) + if (RegionArea.Contains(point.X, point.Y)) { return true; } diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 2cb787ec..1013df37 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -288,6 +288,10 @@ namespace TShockAPI args.Player.SendTileSquare(x, y); return true; } + if (TShock.Regions.InArea(x, y)) + { + args.Player.SendMessage("Tick"); + } if (TShock.Config.DisableBuild) { if (!args.Player.Group.HasPermission("editspawn")) diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 591bc76d..4a3602b7 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.4.0714")] -[assembly: AssemblyFileVersion("2.3.4.0714")] +[assembly: AssemblyVersion("2.3.4.0715")] +[assembly: AssemblyFileVersion("2.3.4.0715")]