diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 1cc4438c..36baf118 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -534,7 +534,7 @@ namespace TShockAPI args.Player.SendTileSquare(tilex, tiley); return true; } - if (!args.Player.Group.HasPermission("editspawn") && RegionManager.InProtectedArea(tilex, tiley, Tools.GetPlayerIP(args.Player.Name))) + if (!args.Player.Group.HasPermission("editspawn") && TShock.Regions.InProtectedArea(tilex, tiley, Tools.GetPlayerIP(args.Player.Name))) { args.Player.SendMessage("Region protected from changes.", Color.Red); args.Player.SendTileSquare(tilex, tiley); diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 3a48c4ec..847d6372 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -95,7 +95,6 @@ namespace TShockAPI #endif AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; - Bans = new BanManager(FileTools.BansPath); Backups = new BackupManager(Path.Combine(SavePath, "backups")); ConfigFile.ConfigRead += OnConfigRead;