Skip to content

Commit

Permalink
Add a separate permission for /skull to give skull to other player
Browse files Browse the repository at this point in the history
#5822 introduced a new feature that is lack of permission. I think it'll be nice to have one
  • Loading branch information
jquery-package authored Jan 12, 2025
1 parent 667b0f7 commit 3789848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected void run(final Server server, final User user, final String commandLab

if (itemSkull != null && MaterialUtil.isPlayerHead(itemSkull) && user == player) {
metaSkull = (SkullMeta) itemSkull.getItemMeta();
} else if (user.isAuthorized("essentials.skull.spawn")) {
} else if (user == player ? user.isAuthorized("essentials.skull.spawn") : user.isAuthorized("essentials.skull.spawn.others")) {
itemSkull = new ItemStack(SKULL_ITEM, 1, (byte) 3);
metaSkull = (SkullMeta) itemSkull.getItemMeta();
spawn = true;
Expand Down

0 comments on commit 3789848

Please sign in to comment.