Skip to content

Commit

Permalink
Allow messing with mob heads, fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 4, 2013
1 parent be892b7 commit 8fe2e7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -86,7 +86,10 @@ else if (entity.isPlayer()) {
entity.getPlayer().getInventory().setHelmet(item);
}
else {
dB.report(getName(), entity.debug() + " is not a player or an NPC!");
if (entity.isLivingEntity() && entity.getLivingEntity().getEquipment() != null)
entity.getLivingEntity().getEquipment().setHelmet(item);
else
dB.echoError(entity.identify() + " is not a living entity!");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Expand Up @@ -31,7 +31,7 @@ commands:
permissions:
denizen.*:
description: Gives access to Denizen commands
default: false
default: op
children:
denizen.basic: true
denizen.notable: true
Expand All @@ -56,7 +56,7 @@ permissions:
denizen.npc.pushable: true
denizen.npc.*:
description: Gives access to the /npc commands added by Denizen
default: false
default: op
children:
denizen.npc.health: true
denizen.npc.sneak: true
Expand Down

0 comments on commit 8fe2e7b

Please sign in to comment.