Skip to content

Commit

Permalink
Fixed priorities not being taken into account with make-room
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Oct 21, 2023
1 parent 0c7769f commit 27dcba1
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -692,6 +692,8 @@ public void sendPlayers(QueueServer queueServer) {
long selectedTime = kickLongest ? Long.MAX_VALUE : 0;
AdaptedPlayer selectedPlayer = null;
for (AdaptedPlayer player : players) {
int priority = main.getLogic().getPermissionGetter().getPriority(player);
if(priority > lowestPriority) continue; // dont select players with higher priorities
long switchTime = main.getServerTimeManager().getLastServerChange(player);
if(selectedPlayer == null) {
selectedPlayer = player;
Expand Down

0 comments on commit 27dcba1

Please sign in to comment.