EntityDamageByEntityEvent Doesnt implement case for item frames, That bukkit now uses to check item frames.
Noobidoo opened this issue ยท 1 comments
This was also reported in bukkit ticket system (http://dev.bukkit.org/bukkit-plugins/residence/tickets/495-item-of-item-frames-not-protected/)
I propose to add:
if (ent instanceof ItemFrame) {
if (area == null) {
if (!Residence.getWorldFlags().getPerms(damager.getWorld().getName()).has("build", true)) {
event.setCancelled(true);
}
} else {
if (!area.getPermissions().has("build", true)) {
event.setCancelled(true);
}
}
}
into
Addressed in Pull #96