diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index 9fc37278..cf7bd94b 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -127,7 +127,7 @@ namespace TShockAPI.DB } } - public bool InProtectedArea(int X, int Y, User user) + public bool InProtectedArea(int X, int Y, User user) //This whole thing is dumb { try { @@ -273,5 +273,16 @@ namespace TShockAPI.DB DisableBuild = 1; RegionWorldID = string.Empty; } + + public bool InProtectedArea(Rectangle point, User user) + { + if (RegionArea.Intersects(point)) + { + //Todo: Code here + //Apparently we don't have access to allowed/denied user IDs here, or they aren't constructed or something + + } + return false; + } } }