Skip to content

Commit

Permalink
Fixed fulljoin and bypasspaused priority options not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Apr 16, 2023
1 parent 4fd393c commit 1c9a413
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/src/main/java/us/ajg0702/queue/api/premium/Logic.java
Expand Up @@ -42,19 +42,19 @@ static int getUnJoinablePriorities(QueueServer queueServer, AdaptedServer server
Config config = AjQueueAPI.getInstance().getConfig();
int highest = 0;

int whitelitedPriority = config.getInt("give-whitelisted-players-priority");
int bypassPausedPriotity = config.getInt("give-whitelisted-players-priority");
int fulljoinPriority = config.getInt("give-whitelisted-players-priority");
int whitelistedPriority = config.getInt("give-whitelisted-players-priority");
int bypassPausedPriority = config.getInt("give-pausedbypass-players-priority");
int fulljoinPriority = config.getInt("give-fulljoin-players-priority");

if(whitelitedPriority > 0) {
if(whitelistedPriority > 0) {
if(server.isWhitelisted() && server.getWhitelistedPlayers().contains(player.getUniqueId())) {
highest = whitelitedPriority;
highest = whitelistedPriority;
}
}

if(bypassPausedPriotity > 0) {
if(bypassPausedPriority > 0) {
if(queueServer.isPaused() && (player.hasPermission("ajqueue.bypasspaused"))) {
highest = Math.max(highest, bypassPausedPriotity);
highest = Math.max(highest, bypassPausedPriority);
}
}

Expand Down

0 comments on commit 1c9a413

Please sign in to comment.