Skip to content

Commit

Permalink
Dont send instantly if the server is not joinable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Aug 18, 2024
1 parent 1a90ea0 commit b23744a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ public boolean canSendInstantly(AdaptedPlayer player, QueueServer queueServer) {
boolean alwaysSendInstantly = main.getConfig().getStringList("send-instantly").contains(queueServer.getName());
boolean hasBypass = main.getLogic().hasAnyBypass(player, queueServer.getName());

boolean sentInstantly = alwaysSendInstantly || (isJoinable && (sizeGood && timeGood)) || hasBypass;
Debug.info("should send instantly (" + sentInstantly + "): " + alwaysSendInstantly + " || (" + isJoinable + " && (" + sizeGood + " && " + timeGood + ") && " + (!hasBypass) + ")");
boolean sentInstantly = isJoinable && (alwaysSendInstantly || (sizeGood && timeGood) || hasBypass);
Debug.info("should send instantly (" + sentInstantly + "): " + isJoinable + " && (" + alwaysSendInstantly + " || (" + sizeGood + " && " + timeGood + ") || " + hasBypass + ")");
return sentInstantly;
}

Expand Down

0 comments on commit b23744a

Please sign in to comment.