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
|
// Refresh permissions again
|
||||||
user.refreshPermissions();
|
plugin.doAsync(user::refreshPermissions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener
|
||||||
public void onClientJoin(ClientConnectionEvent.Join e) {
|
public void onClientJoin(ClientConnectionEvent.Join e) {
|
||||||
// Refresh permissions again
|
// Refresh permissions again
|
||||||
refreshPlayer(e.getTargetEntity().getUniqueId());
|
plugin.doAsync(() -> refreshPlayer(e.getTargetEntity().getUniqueId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener
|
||||||
|
Loading…
Reference in New Issue
Block a user