Import system now imports UserIDs

This commit is contained in:
Lucas Nicodemus 2011-07-21 12:31:11 -06:00
parent cd018fed8d
commit 0aea895a59
2 changed files with 11 additions and 4 deletions

View file

@ -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.");
}
}
}

View file

@ -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));