Remove NPCs from UserManagement when removed

0.9.1.0-post-fixes
UbitUmarov 2018-10-20 14:07:01 +01:00
parent 6d063785bd
commit 2ea5f09ed3
1 changed files with 4 additions and 0 deletions

View File

@ -4798,6 +4798,10 @@ Label_GroupsDone:
if (sp != null) if (sp != null)
{ {
sp.ControllingClient.Close(force, force); sp.ControllingClient.Close(force, force);
if(sp.IsNPC && UserManagementModule != null)
UserManagementModule.RemoveUser(sp.UUID);
return true; return true;
} }