diff --git a/src/main/java/net/frozenorb/apiv3/model/Rank.java b/src/main/java/net/frozenorb/apiv3/model/Rank.java index 69d9063..3b41a5b 100644 --- a/src/main/java/net/frozenorb/apiv3/model/Rank.java +++ b/src/main/java/net/frozenorb/apiv3/model/Rank.java @@ -36,7 +36,7 @@ public final class Rank { @Getter private boolean staffRank; @Getter private boolean grantRequiresTotp; @Getter private String queueMessage; - @Getter private boolean queueInstantJoin; + @Getter private boolean queueBypassCap; public static List findAll() { return ImmutableList.copyOf(rankCache); @@ -71,7 +71,7 @@ public final class Rank { private Rank() {} // For Jackson public Rank(String id, String inheritsFromId, int generalWeight, int displayWeight, String displayName, String gamePrefix, String gameColor, - String websiteColor, boolean staffRank, boolean grantRequiresTotp, String queueMessage, boolean queueInstantJoin) { + String websiteColor, boolean staffRank, boolean grantRequiresTotp, String queueMessage, boolean queueBypassCap) { this.id = id; this.inheritsFromId = inheritsFromId; this.generalWeight = generalWeight; @@ -83,7 +83,7 @@ public final class Rank { this.staffRank = staffRank; this.grantRequiresTotp = grantRequiresTotp; this.queueMessage = queueMessage; - this.queueInstantJoin = queueInstantJoin; + this.queueBypassCap = queueBypassCap; } public void insert(SingleResultCallback callback) { diff --git a/src/main/java/net/frozenorb/apiv3/route/ranks/POSTRanks.java b/src/main/java/net/frozenorb/apiv3/route/ranks/POSTRanks.java index 3ef63e4..02cd61b 100644 --- a/src/main/java/net/frozenorb/apiv3/route/ranks/POSTRanks.java +++ b/src/main/java/net/frozenorb/apiv3/route/ranks/POSTRanks.java @@ -27,9 +27,9 @@ public final class POSTRanks implements Handler { boolean staffRank = requestBody.getBoolean("staffRank"); boolean grantRequiresTotp = requestBody.getBoolean("grantRequiresTotp"); String queueMessage = requestBody.getString("queueMessage"); - boolean queueInstantJoin = requestBody.getBoolean("queueInstantJoin"); + boolean queueBypassCap = requestBody.getBoolean("queueBypassCap"); - Rank rank = new Rank(id, inheritsFromId, generalWeight, displayWeight, displayName, gamePrefix, gameColor, websiteColor, staffRank, grantRequiresTotp, queueMessage, queueInstantJoin); + Rank rank = new Rank(id, inheritsFromId, generalWeight, displayWeight, displayName, gamePrefix, gameColor, websiteColor, staffRank, grantRequiresTotp, queueMessage, queueBypassCap); SyncUtils.runBlocking(v -> rank.insert(v)); if (requestBody.containsKey("addedBy")) {