fixed rejoin queue not working on velocity

This commit is contained in:
ajgeiss0702
2021-07-31 11:12:31 -07:00
parent 7825bd650d
commit 86744676c0
@@ -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()));