aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-04-02 22:58:07 +0300
committerPetr Ilin <hevav@hevav.dev>2022-04-02 22:58:07 +0300
commit844f5cc6115858c523c69667855632764a5dd50d (patch)
tree871e243d4fa8084c140ac0eb56e5349c463e15b4 /src/main/java/net/elytrium
parent4b5857eccf18641fba5e679c1133785ec93e5669 (diff)
downloadLimboAuth-844f5cc6115858c523c69667855632764a5dd50d.tar.gz
LimboAuth-844f5cc6115858c523c69667855632764a5dd50d.tar.bz2
LimboAuth-844f5cc6115858c523c69667855632764a5dd50d.zip
GameProfileRequestEvent 'early' order
Diffstat (limited to 'src/main/java/net/elytrium')
-rw-r--r--src/main/java/net/elytrium/limboauth/listener/AuthListener.java3
1 files changed, 2 insertions, 1 deletions
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());