diff --git a/common/src/main/java/me/lucko/luckperms/common/core/model/PermissionHolder.java b/common/src/main/java/me/lucko/luckperms/common/core/model/PermissionHolder.java index a6059ab98..4ad63a75a 100644 --- a/common/src/main/java/me/lucko/luckperms/common/core/model/PermissionHolder.java +++ b/common/src/main/java/me/lucko/luckperms/common/core/model/PermissionHolder.java @@ -1115,8 +1115,8 @@ public abstract class PermissionHolder { OptionalInt weight = OptionalInt.empty(); try { weight = getNodes().stream() - .filter(n -> n.getPermission().startsWith("group.weight.")) - .map(n -> n.getPermission().substring("group.weight.".length())) + .filter(n -> n.getPermission().startsWith("weight.")) + .map(n -> n.getPermission().substring("weight.".length())) .mapToInt(Integer::parseInt) .max(); } catch (Exception ignored) {}