Fix hardcore deaths by wiping and reseeding the tsCharacter table.
Log to server/logs chat over head.
This commit is contained in:
parent
acdaa2eb05
commit
ddb2afefe9
3 changed files with 33 additions and 3 deletions
|
|
@ -130,5 +130,20 @@ namespace TShockAPI.DB
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool RemovePlayer(int userid)
|
||||
{
|
||||
try
|
||||
{
|
||||
database.Query("DELETE FROM tsCharacter WHERE Account = @0;", userid);
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue