From 782c09b68613b4aa794f5750787adb605884af6d Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 13 Oct 2016 21:29:30 +0100 Subject: [PATCH] Refine bulk group edit primary group check --- .../commands/usersbulkedit/subcommands/BulkEditGroup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/usersbulkedit/subcommands/BulkEditGroup.java b/common/src/main/java/me/lucko/luckperms/common/commands/usersbulkedit/subcommands/BulkEditGroup.java index 359760ed1..367bbaefe 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/usersbulkedit/subcommands/BulkEditGroup.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/usersbulkedit/subcommands/BulkEditGroup.java @@ -83,7 +83,9 @@ public class BulkEditGroup extends SubCommand { } if (element.getGroupName().equals(user.getPrimaryGroup())) { - continue; + if (!element.isServerSpecific() && !element.isWorldSpecific() && !element.isTemporary()) { + continue; + } } if (!group.equals("null") && !element.getGroupName().equals(group)) {