mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Run user dispose on another thread.
This commit is contained in:
@@ -224,6 +224,18 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void dispose()
|
public void dispose()
|
||||||
|
{
|
||||||
|
ess.runTaskAsynchronously(new Runnable()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
_dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void _dispose()
|
||||||
{
|
{
|
||||||
this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer());
|
this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user