Fixed "modifyworld.item.use" permission for more consistency (now its "modifyworld.items.use").

This commit is contained in:
t3hk0d3 2012-05-09 00:55:26 +04:00
parent d95f884c33
commit 7b9daea515

View File

@ -189,7 +189,7 @@ public class PlayerListener extends ModifyworldListener {
@EventHandler(priority = EventPriority.LOW)
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
if (this.checkItemUse) {
if (!event.getPlayer().hasPermission("modifyworld.item.use." + getItemPermission(event.getPlayer().getItemInHand()) + ".on.entity." + getEntityName(event.getRightClicked()))) {
if (!event.getPlayer().hasPermission("modifyworld.items.use." + getItemPermission(event.getPlayer().getItemInHand()) + ".on.entity." + getEntityName(event.getRightClicked()))) {
event.setCancelled(true);
informPlayerAboutDenial(event.getPlayer());
}