Adding /region info -- needs further protection from nulls

This commit is contained in:
Graham Cantin 2011-08-19 02:50:59 -07:00
parent 6101046961
commit 2cdb9dc953
2 changed files with 29 additions and 0 deletions

View file

@ -255,6 +255,17 @@ namespace TShockAPI.DB
return null;
}
}
public User GetUserByID(int id)
{
try
{
return GetUser(new User { ID = id });
}
catch (UserManagerException)
{
return null;
}
}
public User GetUserByIP(string ip)
{
try