diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index f14358ef..e23dc289 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -146,9 +146,16 @@ namespace TShockAPI.DB ipstr = ""; for( int i = 0; i < ips.Length; i++ ) { - if (ipstr != "") - ipstr += ","; - ipstr += ips[i]; + try + { + if (ipstr != "") + ipstr += ","; + ipstr += TShock.Users.GetUserID(ips[i]); + } catch (Exception e) + { + Log.Error("An IP address failed to import. It wasn't a user in the new user system."); + } + } } diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 6b1e1ff1..c7b4679a 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -170,10 +170,10 @@ namespace TShockAPI Bans = new BanManager(DB); Warps = new WarpManager(DB); - Regions = new RegionManager(DB); Users = new UserManager(DB); Groups = new GroupManager(DB); Groups.LoadPermisions(); + Regions = new RegionManager(DB); Itembans = new ItemManager(DB); Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename));