mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Make refresh calls in SpongeListener run async
This commit is contained in:
parent
93c7c06b2d
commit
1eb053447e
@ -66,13 +66,13 @@ public class SpongeListener extends AbstractListener {
|
||||
}
|
||||
|
||||
// Refresh permissions again
|
||||
user.refreshPermissions();
|
||||
plugin.doAsync(user::refreshPermissions);
|
||||
}
|
||||
|
||||
@Listener
|
||||
public void onClientJoin(ClientConnectionEvent.Join e) {
|
||||
// Refresh permissions again
|
||||
refreshPlayer(e.getTargetEntity().getUniqueId());
|
||||
plugin.doAsync(() -> refreshPlayer(e.getTargetEntity().getUniqueId()));
|
||||
}
|
||||
|
||||
@Listener
|
||||
|
Loading…
Reference in New Issue
Block a user