罗浮,gm功能,交换排名

(cherry picked from commit 0801930225)
master_haizei01
grimm 2024-04-23 18:39:33 +08:00
parent ee2464169c
commit 5b31f6fe15
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ public class Cmd_luofu extends GmAbstract {
} }
ZSetOperations.TypedTuple<String> next = rankByKey.iterator().next(); ZSetOperations.TypedTuple<String> next = rankByKey.iterator().next();
double score = rank.getScoreById(user.getId(), typeString); double score = rank.getScoreById(user.getId(), typeString);
rank.addRank(user.getId(), typeString, score); rank.addRank(user.getId(), typeString, next.getScore());
rank.addRank(Integer.parseInt(next.getValue()), typeString, next.getScore()); rank.addRank(Integer.parseInt(next.getValue()), typeString, score);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }