diff --git a/common/src/main/java/me/lucko/luckperms/common/core/model/User.java b/common/src/main/java/me/lucko/luckperms/common/core/model/User.java index 6fe1f022..06460a37 100644 --- a/common/src/main/java/me/lucko/luckperms/common/core/model/User.java +++ b/common/src/main/java/me/lucko/luckperms/common/core/model/User.java @@ -152,6 +152,13 @@ public class User extends PermissionHolder implements Identifiable { // Make a LuckPerms user for the one being migrated plugin.getStorage().loadUser(uuid, "null").join(); User user = plugin.getUserManager().get(uuid); + if (user.getNodes().size() <= 1) { + user.clearNodes(false); + } migrateSubject(pmUser, user); plugin.getStorage().saveUser(user); plugin.getUserManager().cleanup(user); diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/migration/MigrationPermissionsEx.java b/sponge/src/main/java/me/lucko/luckperms/sponge/migration/MigrationPermissionsEx.java index e90b239f..a377b6a1 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/migration/MigrationPermissionsEx.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/migration/MigrationPermissionsEx.java @@ -153,6 +153,9 @@ public class MigrationPermissionsEx extends SubCommand { // Make a LuckPerms user for the one being migrated plugin.getStorage().loadUser(uuid, "null").join(); User user = plugin.getUserManager().get(uuid); + if (user.getNodes().size() <= 1) { + user.clearNodes(false); + } migrateSubject(pexUser, user); plugin.getStorage().saveUser(user); plugin.getUserManager().cleanup(user);