Import system now imports UserIDs
This commit is contained in:
parent
cd018fed8d
commit
0aea895a59
2 changed files with 11 additions and 4 deletions
|
|
@ -146,9 +146,16 @@ namespace TShockAPI.DB
|
||||||
ipstr = "";
|
ipstr = "";
|
||||||
for( int i = 0; i < ips.Length; i++ )
|
for( int i = 0; i < ips.Length; i++ )
|
||||||
{
|
{
|
||||||
if (ipstr != "")
|
try
|
||||||
ipstr += ",";
|
{
|
||||||
ipstr += ips[i];
|
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.");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -170,10 +170,10 @@ namespace TShockAPI
|
||||||
|
|
||||||
Bans = new BanManager(DB);
|
Bans = new BanManager(DB);
|
||||||
Warps = new WarpManager(DB);
|
Warps = new WarpManager(DB);
|
||||||
Regions = new RegionManager(DB);
|
|
||||||
Users = new UserManager(DB);
|
Users = new UserManager(DB);
|
||||||
Groups = new GroupManager(DB);
|
Groups = new GroupManager(DB);
|
||||||
Groups.LoadPermisions();
|
Groups.LoadPermisions();
|
||||||
|
Regions = new RegionManager(DB);
|
||||||
Itembans = new ItemManager(DB);
|
Itembans = new ItemManager(DB);
|
||||||
|
|
||||||
Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename));
|
Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue