mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-16 10:35:32 +01:00
Fixed "modifyworld.item.use" permission for more consistency (now its "modifyworld.items.use").
This commit is contained in:
parent
d95f884c33
commit
7b9daea515
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user