Fix applying group web editor changes (#1148)

This commit is contained in:
Luck 2018-08-13 22:44:10 +01:00
parent cc9bb34873
commit a784ad435f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -123,7 +123,7 @@ public final class WebEditor {
public static PermissionHolder getHolderFromIdentifier(LuckPermsPlugin plugin, Sender sender, String who) { public static PermissionHolder getHolderFromIdentifier(LuckPermsPlugin plugin, Sender sender, String who) {
if (who.startsWith(GROUP_ID_PATTERN)) { if (who.startsWith(GROUP_ID_PATTERN)) {
String group = who.substring(GROUP_ID_PATTERN.length()); String group = who.substring(GROUP_ID_PATTERN.length());
Group holder = plugin.getStorage().loadGroup(who).join().orElse(null); Group holder = plugin.getStorage().loadGroup(group).join().orElse(null);
if (holder == null) { if (holder == null) {
Message.APPLY_EDITS_TARGET_GROUP_NOT_EXISTS.send(sender, group); Message.APPLY_EDITS_TARGET_GROUP_NOT_EXISTS.send(sender, group);
} }