Change some listener priorities

This commit is contained in:
Luck 2016-10-30 13:23:45 +00:00
parent e88ea9c13d
commit b93145f26d
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -96,13 +96,13 @@ public class SpongeListener extends AbstractListener {
}
}
@Listener
@Listener(order = Order.EARLY)
public void onClientJoin(ClientConnectionEvent.Join e) {
// Refresh permissions again
plugin.doAsync(() -> refreshPlayer(e.getTargetEntity().getUniqueId()));
}
@Listener
@Listener(order = Order.LAST)
public void onClientLeave(ClientConnectionEvent.Disconnect e) {
onLeave(e.getTargetEntity().getUniqueId());
plugin.getService().getUserSubjects().unload(plugin.getUuidCache().getUUID(e.getTargetEntity().getUniqueId()));