From b93145f26d71cee45c1bb0fb3e01837e929a680c Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 30 Oct 2016 13:23:45 +0000 Subject: [PATCH] Change some listener priorities --- .../main/java/me/lucko/luckperms/sponge/SpongeListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/SpongeListener.java b/sponge/src/main/java/me/lucko/luckperms/sponge/SpongeListener.java index 4cc44ea3..1d815b7d 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/SpongeListener.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/SpongeListener.java @@ -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()));