Skip to content

Commit

Permalink
Add VIP to HelpBot
Browse files Browse the repository at this point in the history
  • Loading branch information
Reasonlesss committed Jul 6, 2024
1 parent aa5a701 commit be2537d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/diamondfire/helpbot/df/ranks/Rank.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import net.dv8tion.jda.api.entities.emoji.Emoji;

public enum Rank {
// VIP Pass
VIP("VIP", 1, RankBranch.VIP, "VIP"),
// Ranks
NOBLE("Noble", 1, RankBranch.DONOR, "Noble"),
EMPEROR("Emperor", 2, RankBranch.DONOR, "Emperor"),
Expand All @@ -15,6 +13,7 @@ public enum Rank {
RETIRED("Retired", 1, RankBranch.RETIREMENT, "Retired"),
EMERITUS("Emeritus", 2, RankBranch.RETIREMENT, "Emeritus"),
//Special
VIP("VIP", 1, RankBranch.VIP, "VIP"),
BUILDER("B", 1, RankBranch.BUILDER, "Builder"),
YOUTUBER("YT", 1, RankBranch.YOUTUBER, "Youtube"),
// Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static Rank[] getRanks(ResultSet set) {
} catch (SQLException ignored) {
}

return ranks.toArray(Rank[]::new);
return ranks.stream().sorted(Comparator.comparingInt(Enum::ordinal)).toArray(Rank[]::new);
}

public static Rank getHighRank(ResultSet set) {
Expand Down

0 comments on commit be2537d

Please sign in to comment.