TODO: need fix at rank command
This commit is contained in:
parent
1972bcf7d5
commit
690fdec429
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue