Skip to content

Commit

Permalink
Add placeholder support to voteshop permission
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Sep 5, 2024
1 parent 8d8e904 commit a2dc362
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public void onChest(Player player) {
hasPerm = true;
} else {
if (perm.startsWith("!")) {
hasPerm = !player.hasPermission(perm.substring(1));
hasPerm = !player.hasPermission(PlaceholderUtils.replacePlaceHolders(player, perm.substring(1)));
} else {
hasPerm = player.hasPermission(perm);
hasPerm = player.hasPermission(PlaceholderUtils.replacePlaceHolders(player, perm));
}
}

Expand Down

0 comments on commit a2dc362

Please sign in to comment.