mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Change some listener priorities
This commit is contained in:
parent
e88ea9c13d
commit
b93145f26d
@ -96,13 +96,13 @@ public class SpongeListener extends AbstractListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener(order = Order.EARLY)
|
||||||
public void onClientJoin(ClientConnectionEvent.Join e) {
|
public void onClientJoin(ClientConnectionEvent.Join e) {
|
||||||
// Refresh permissions again
|
// Refresh permissions again
|
||||||
plugin.doAsync(() -> refreshPlayer(e.getTargetEntity().getUniqueId()));
|
plugin.doAsync(() -> refreshPlayer(e.getTargetEntity().getUniqueId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener(order = Order.LAST)
|
||||||
public void onClientLeave(ClientConnectionEvent.Disconnect e) {
|
public void onClientLeave(ClientConnectionEvent.Disconnect e) {
|
||||||
onLeave(e.getTargetEntity().getUniqueId());
|
onLeave(e.getTargetEntity().getUniqueId());
|
||||||
plugin.getService().getUserSubjects().unload(plugin.getUuidCache().getUUID(e.getTargetEntity().getUniqueId()));
|
plugin.getService().getUserSubjects().unload(plugin.getUuidCache().getUUID(e.getTargetEntity().getUniqueId()));
|
||||||
|
Loading…
Reference in New Issue
Block a user