fix: Interaction flag with item_frame

Interaction flag with item_frame #1761
This commit is contained in:
Opachl 2017-11-12 17:36:58 +01:00
parent b4e8d782a1
commit c3f93a1960

View File

@ -2198,6 +2198,9 @@ public class PlayerEvents extends PlotListener implements Listener {
if (entity instanceof Villager && plot.getFlag(Flags.VILLAGER_INTERACT, false)) {
return;
}
if (entity instanceof ItemFrame && plot.getFlag(Flags.MISC_INTERACT, false)) {
return;
}
if (!Permissions.hasPermission(pp, C.PERMISSION_ADMIN_INTERACT_OTHER)) {
MainUtil.sendMessage(pp, C.NO_PERMISSION_EVENT, C.PERMISSION_ADMIN_INTERACT_OTHER);
event.setCancelled(true);