Skip to content

Commit

Permalink
Fixed skip-queue-server-if-possible sending players even if target se…
Browse files Browse the repository at this point in the history
…rver is offline when queue server is in send-instantly
  • Loading branch information
ajgeiss0702 committed Nov 5, 2023
1 parent a4ebd15 commit 64148c2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,14 @@ public void onServerKick(AdaptedPlayer player, @NotNull AdaptedServer from, Comp

if(!main.getQueueManager().canSendInstantly(player, to)) return null;

AdaptedServer ideal = to.getIdealServer(player);

if(ideal == null) return null;
if(!ideal.isJoinable(player)) return null;

Debug.info("Skipping queue-server " + initialChoice.getName() + " for " + player.getName() + " because they would be sent instantly! (skip-queue-server-if-possible)");

return to.getIdealServer(player);
ideal.addPlayer();
return ideal;
}
}

0 comments on commit 64148c2

Please sign in to comment.