I don't quite understand what you want, but I assume blocking the removal of item frames and items in them is what you want. In that case, utilise HangingBreakByEntityEvent and EntityDamageByEntityEvent
JSgr Maby you can do it whit PlayerInterachtEvent? When they right click a itemframe you cancel it (Rotate stuff) End left so they cant break it? I think you can do it whit that but i am nor 100% sure.
I have already do that, but this is protect item frame and only item frame not item in item frame, like this : Code: @EventHandler public void onDestroyByEntity(HangingBreakByEntityEvent event) { if(event.getRemover() instanceof Player) { if(event.getEntity().getType() == EntityType.ITEM_FRAME) event.setCancelled(true); } }
Well, your code doesn't work because you're checking if the item frame is breaking, not if they're removing the item within it. I know this plugin did it so it's possible. Let me try something in my IDE.