Don't delete old client when being replaced (solves enjin listener issue)
This commit is contained in:
parent
cbe238c83d
commit
28a83ef722
@ -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 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -102,11 +102,6 @@ public class CoreClientManager extends MiniPlugin
|
||||
oldClient = _clientList.put(uuid, newClient);
|
||||
}
|
||||
|
||||
if (oldClient != null)
|
||||
{
|
||||
oldClient.Delete();
|
||||
}
|
||||
|
||||
return newClient;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user