Load a up-to-date copy of group data before applying web editor changes

This commit is contained in:
Luck 2018-08-08 09:00:35 +01:00
parent 553da9baf6
commit 59c7d77525
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) {
if (who.startsWith(GROUP_ID_PATTERN)) {
String group = who.substring(GROUP_ID_PATTERN.length());
Group holder = plugin.getGroupManager().getIfLoaded(group);
Group holder = plugin.getStorage().loadGroup(who).join().orElse(null);
if (holder == null) {
Message.APPLY_EDITS_TARGET_GROUP_NOT_EXISTS.send(sender, group);
}