From 844f5cc6115858c523c69667855632764a5dd50d Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Sat, 2 Apr 2022 22:58:07 +0300 Subject: GameProfileRequestEvent 'early' order --- src/main/java/net/elytrium/limboauth/listener/AuthListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java index 9ff6b6f..dcca4cc 100644 --- a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java +++ b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java @@ -19,6 +19,7 @@ package net.elytrium.limboauth.listener; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.stmt.UpdateBuilder; +import com.velocitypowered.api.event.PostOrder; import com.velocitypowered.api.event.Subscribe; import com.velocitypowered.api.event.connection.PostLoginEvent; import com.velocitypowered.api.event.connection.PreLoginEvent; @@ -79,7 +80,7 @@ public class AuthListener { } } - @Subscribe + @Subscribe(order = PostOrder.FIRST) public void onGameProfileRequest(GameProfileRequestEvent event) { if (Settings.IMP.MAIN.SAVE_UUID && (this.floodgateApi == null || !this.floodgateApi.isFloodgatePlayer(event.getOriginalProfile().getId()))) { RegisteredPlayer registeredPlayer = AuthSessionHandler.fetchInfo(this.playerDao, event.getOriginalProfile().getId()); -- cgit