Skip to content

Commit e2295c1

Browse files
jquery-packageJRoy
andauthored
Add permission node for giving skulls to other players (#6008)
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
1 parent eb6e192 commit e2295c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/commands/Commandskull.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected void run(final Server server, final User user, final String commandLab
8989

9090
if (itemSkull != null && MaterialUtil.isPlayerHead(itemSkull) && user == player) {
9191
metaSkull = (SkullMeta) itemSkull.getItemMeta();
92-
} else if (user.isAuthorized("essentials.skull.spawn")) {
92+
} else if (user == player ? user.isAuthorized("essentials.skull.spawn") : user.isAuthorized("essentials.skull.spawn.others")) {
9393
itemSkull = new ItemStack(SKULL_ITEM, 1, (byte) 3);
9494
metaSkull = (SkullMeta) itemSkull.getItemMeta();
9595
spawn = true;

0 commit comments

Comments
 (0)