diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationGroupManager.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationGroupManager.java index a00cfda8..0dcbcc07 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationGroupManager.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/migration/MigrationGroupManager.java @@ -260,14 +260,14 @@ public class MigrationGroupManager extends SubCommand { ex.printStackTrace(); } } + } - String primaryGroup = primaryGroups.get(e.getKey()); - if (primaryGroup != null) { - try { - user.setPermission("group." + primaryGroup, true); - } catch (ObjectAlreadyHasException ignored) {} - user.setPrimaryGroup(primaryGroup); - } + String primaryGroup = primaryGroups.get(e.getKey()); + if (primaryGroup != null) { + try { + user.setPermission("group." + primaryGroup, true); + } catch (ObjectAlreadyHasException ignored) {} + user.setPrimaryGroup(primaryGroup); } plugin.getDatastore().saveUser(user);