Don't delete old client when being replaced (solves enjin listener issue)

This commit is contained in:
Shaun Bennett 2017-01-05 17:11:40 -05:00 committed by cnr
parent cbe238c83d
commit 28a83ef722
2 changed files with 12 additions and 11 deletions

View File

@ -68,12 +68,6 @@ public class CoreClient
return _accountId;
}
public void Delete()
{
_name = null;
_player = null;
}
public void setAccountId(int accountId)
{
_accountId = accountId;
@ -214,4 +208,16 @@ public class CoreClient
return getDisguisedAs();
return getName();
}
@Override
public String toString()
{
return "CoreClient{" +
"_accountId=" + _accountId +
", _name='" + _name + '\'' +
", _uuid=" + _uuid +
", _player=" + _player +
", _rank=" + _rank +
'}';
}
}

View File

@ -102,11 +102,6 @@ public class CoreClientManager extends MiniPlugin
oldClient = _clientList.put(uuid, newClient);
}
if (oldClient != null)
{
oldClient.Delete();
}
return newClient;
}