Fix hardcore deaths by wiping and reseeding the tsCharacter table.

Log to server/logs chat over head.
This commit is contained in:
Zack Piispanen 2013-10-11 00:49:46 -04:00
parent acdaa2eb05
commit ddb2afefe9
3 changed files with 33 additions and 3 deletions

View file

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