TODO: need fix at rank command

This commit is contained in:
NK 2022-12-22 18:45:14 +00:00
parent 1972bcf7d5
commit 690fdec429

View file

@ -12,6 +12,7 @@ import java.util.UUID;
public class RankDataManager { public class RankDataManager {
public static void setRank(UUID uuid, Rank rank, ScoreboardListener... listener) { public static void setRank(UUID uuid, Rank rank, ScoreboardListener... listener) {
// TODO: fix not working in rank command
Document document = new DatabaseManager().getRanksDB().find(new Document("UUID", uuid.toString())).first(); Document document = new DatabaseManager().getRanksDB().find(new Document("UUID", uuid.toString())).first();
if (document != null) { if (document != null) {
Bson updated = new Document("Rank", rank.name()); Bson updated = new Document("Rank", rank.name());