1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 16:48:05 +02:00

Run user dispose on another thread.

This commit is contained in:
KHobbits
2014-04-28 23:12:35 +01:00
parent 0a3394ac0f
commit 21179b2d62

View File

@@ -224,6 +224,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());
}