diff options
author | KHobbits <rob@khobbits.co.uk> | 2014-04-28 23:12:35 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-04-28 23:12:35 +0100 |
commit | 5eb82add06aeca4ea4577c55e873fb2bbee9b62d (patch) | |
tree | 632703f0b64c836edb90f7e51163ec54cb869935 | |
parent | 8bd1a9f3bc4542ec2a3fbfabedcd6545177295cf (diff) | |
download | Essentials-5eb82add06aeca4ea4577c55e873fb2bbee9b62d.tar Essentials-5eb82add06aeca4ea4577c55e873fb2bbee9b62d.tar.gz Essentials-5eb82add06aeca4ea4577c55e873fb2bbee9b62d.tar.lz Essentials-5eb82add06aeca4ea4577c55e873fb2bbee9b62d.tar.xz Essentials-5eb82add06aeca4ea4577c55e873fb2bbee9b62d.zip |
Run user dispose on another thread.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/User.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index 3b3ef836b..7c7b89720 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -225,6 +225,18 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es public void dispose() { + ess.runTaskAsynchronously(new Runnable() + { + @Override + public void run() + { + _dispose(); + } + }); + } + + private void _dispose() + { this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer()); } |