Skip to content

Commit

Permalink
Fix multiplier permissions set to false being functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Jul 19, 2023
1 parent 80d2b27 commit c6e95f8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public double getMultiplier(Player player, Skill skill) {
}
// Add permission multipliers
for (PermissionAttachmentInfo info : player.getEffectivePermissions()) {
if (!info.getValue()) continue; // Ignore permissions that are set to false
String permission = info.getPermission().toLowerCase(Locale.ROOT);
if (permission.startsWith("aureliumskills.multiplier.")) {
permission = TextUtil.replace(permission, "aureliumskills.multiplier.", "");
Expand Down

0 comments on commit c6e95f8

Please sign in to comment.