summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java12
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());
}