mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Load a up-to-date copy of group data before applying web editor changes
This commit is contained in:
parent
553da9baf6
commit
59c7d77525
@ -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.getGroupManager().getIfLoaded(group);
|
Group holder = plugin.getStorage().loadGroup(who).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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user