Skip to content

Commit

Permalink
Fixed queue-server-delay being ignored by force-queue-server-target
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Oct 21, 2023
1 parent e8ca809 commit d61ce73
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -472,7 +472,7 @@ public void sendQueueEvents() {
}
long lastSwitch = main.getServerTimeManager().getLastServerChange(player);
int delay = Math.min(Math.max(main.getConfig().getInt("queue-server-delay"), 0), 3000);
if(System.currentTimeMillis() - lastSwitch > delay + 1000 || !player.getCurrentServer().equals(from)) {
if(System.currentTimeMillis() - lastSwitch < delay + 1000 || !player.getCurrentServer().equals(from)) {
return;
}
if(
Expand Down

0 comments on commit d61ce73

Please sign in to comment.