Fix usernames showing as "null" and NPE related to primaryGroup not copying correctly
This commit is contained in:
@@ -84,7 +84,10 @@ public class UserMainCommand extends MainCommand<User> {
|
||||
}
|
||||
}
|
||||
|
||||
if (!plugin.getDatastore().loadUser(u, "null")) {
|
||||
String name = plugin.getDatastore().getName(u);
|
||||
if (name == null) name = "null";
|
||||
|
||||
if (!plugin.getDatastore().loadUser(u, name)) {
|
||||
Message.LOADING_ERROR.send(sender);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user