Skip to content

Commit

Permalink
[FIX] Wrong Permission Node for Disabling Slots
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfstorm <[email protected]>
  • Loading branch information
Wolfieheart committed Jul 24, 2021
1 parent 5db0a89 commit ce3f4d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private void paste(ArmorStand armorStand) {
}

private void toggleDisableSlots(ArmorStand armorStand) {
if(!getPlayer().hasPermission("ase.basic")) return;
if(!getPlayer().hasPermission("asedit.equipment")) return;
if (armorStand.hasEquipmentLock(EquipmentSlot.HAND, ArmorStand.LockType.REMOVING_OR_CHANGING)) { //Adds a lock to every slot or removes it
for (final EquipmentSlot slot : EquipmentSlot.values()) {
armorStand.removeEquipmentLock(slot, ArmorStand.LockType.REMOVING_OR_CHANGING);
Expand Down

0 comments on commit ce3f4d9

Please sign in to comment.