From 28a83ef7229b573225990c56d17134de4d6dab8b Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Thu, 5 Jan 2017 17:11:40 -0500 Subject: [PATCH] Don't delete old client when being replaced (solves enjin listener issue) --- .../src/mineplex/core/account/CoreClient.java | 18 ++++++++++++------ .../core/account/CoreClientManager.java | 5 ----- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClient.java b/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClient.java index 7afa65772..379dc217d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClient.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClient.java @@ -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 + + '}'; + } } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClientManager.java b/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClientManager.java index d6414e463..a66771217 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClientManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/account/CoreClientManager.java @@ -102,11 +102,6 @@ public class CoreClientManager extends MiniPlugin oldClient = _clientList.put(uuid, newClient); } - if (oldClient != null) - { - oldClient.Delete(); - } - return newClient; }