mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-10-31 07:51:05 +01:00
Fix issue with loading usernames on MongoDB - closes #257
This commit is contained in:
parent
3d54f832c5
commit
c64f72e394
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user