Skip to content

Commit

Permalink
Merge pull request #17 from Andradina-Minecraft-Fun/main
Browse files Browse the repository at this point in the history
fix menu permission
  • Loading branch information
Refrac authored Nov 26, 2023
2 parents 6f74d0b + d0898e3 commit 81aa237
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void handleMenu(InventoryClickEvent e) {
tag = plugin.getTagManager().findByName(e.getCurrentItem().getItemMeta().getDisplayName()).get();
}

if (!player.hasPermission("simpletags.tag." + tag.getConfigName()) || !player.hasPermission("simpletags.tag.*")) {
if (!player.hasPermission("simpletags.tag." + tag.getConfigName()) && !player.hasPermission("simpletags.tag.*")) {
locale.sendMessage(player, "tag-not-owned", Placeholders.setPlaceholders(player));
player.closeInventory();
return;
Expand Down

0 comments on commit 81aa237

Please sign in to comment.