Skip to content

Commit dcdf0e5

Browse files
committed
* Fixed Rank.
1 parent 6eb92be commit dcdf0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/presti/ree6/utils/data/LevelUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public static double getProgress(UserLevel userLevel) {
8989
*/
9090
public static int getCurrentRank(UserLevel userLevel) {
9191
if (userLevel instanceof ChatUserLevel) {
92-
return Main.getInstance().getSqlConnector().getSqlWorker().getAllChatLevelSorted(userLevel.getGuildId()).indexOf(userLevel.getUserId());
92+
return Main.getInstance().getSqlConnector().getSqlWorker().getAllChatLevelSorted(userLevel.getGuildId()).indexOf(userLevel.getUserId()) + 1;
9393
} else if (userLevel instanceof VoiceUserLevel) {
94-
return Main.getInstance().getSqlConnector().getSqlWorker().getAllVoiceLevelSorted(userLevel.getGuildId()).indexOf(userLevel.getUserId());
94+
return Main.getInstance().getSqlConnector().getSqlWorker().getAllVoiceLevelSorted(userLevel.getGuildId()).indexOf(userLevel.getUserId()) + 1;
9595
}
9696

9797
return 0;

0 commit comments

Comments
 (0)