From 86744676c06eeeda059f454d2ab19adae7ccef0f Mon Sep 17 00:00:00 2001 From: ajgeiss0702 Date: Sat, 31 Jul 2021 11:12:31 -0700 Subject: [PATCH] fixed rejoin queue not working on velocity --- .../java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java b/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java index 0654575..37e4c47 100644 --- a/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java +++ b/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java @@ -118,7 +118,7 @@ public class VelocityQueue { @SuppressWarnings("UnstableApiUsage") @Subscribe public void onJoin(ServerPostConnectEvent e) { - if(e.getPreviousServer() != null) { // only run if the player just joined + if(e.getPreviousServer() == null) { // only run if the player just joined main.getEventHandler().onPlayerJoin(new VelocityPlayer(e.getPlayer())); } main.getEventHandler().onPlayerJoinServer(new VelocityPlayer(e.getPlayer()));