mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-18 17:19:17 +00:00
Fix issue with loading usernames on MongoDB - closes #257
This commit is contained in:
2 files changed
+2
-7
No files matched your search
@@ -325,7 +325,7 @@ public class MongoDBBacking extends AbstractBacking {
|
||||
|
||||
boolean save = plugin.getUserManager().giveDefaultIfNeeded(user, false);
|
||||
|
||||
if (user.setName(name, false)) {
|
||||
if (user.setName(d.getString("name"), false)) {
|
||||
save = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -343,13 +343,8 @@ public class SQLBacking extends AbstractBacking {
|
||||
}
|
||||
user.getPrimaryGroup().setStoredValue(pg);
|
||||
|
||||
String name = userName.get();
|
||||
if (name == null) {
|
||||
name = "null";
|
||||
}
|
||||
|
||||
// Update their username to what was in the storage if the one in the local instance is null
|
||||
user.setName(name, false);
|
||||
user.setName(userName.get(), false);
|
||||
|
||||
// If the user has any data in storage
|
||||
if (!data.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user