mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 05:02:35 +00:00
Fix usernames showing as "null" and NPE related to primaryGroup not copying correctly
This commit is contained in:
6 files changed
+62
-1
No files matched your search
@@ -63,6 +63,7 @@ public abstract class UserManager extends AbstractManager<UUID, User> {
|
||||
public void copy(User from, User to) {
|
||||
to.setNodes(from.getNodes());
|
||||
to.setPrimaryGroup(from.getPrimaryGroup());
|
||||
giveDefaultIfNeeded(to, true);
|
||||
to.refreshPermissions();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user