From 77e3b351fd70d3ae46f4f907d1e8275dd26c980f Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 28 Oct 2016 17:58:36 +0100 Subject: [PATCH] Fix GroupManager user migration --- .../bukkit/migration/MigrationGroupManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 a00cfda87..0dcbcc079 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);