Adding /region info -- needs further protection from nulls
This commit is contained in:
parent
6101046961
commit
2cdb9dc953
2 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue