@@ -287,6 +287,7 @@ public class Events implements Listener {
if(e.getBlock().getType() == Material.FARMLAND) {
e.setCancelled(true);
}
+ PlotEvents.onEntityChangeBlock(e);
ScriptEvents.onEntityChangeBlock(e);
@@ -150,4 +150,13 @@ public class PlotEvents {
+
+ public static void onEntityChangeBlock(EntityChangeBlockEvent e) {
+ if(e.getEntity() instanceof Player) {
+ return;
+ }
+ if(WorldPlotMap.hasPlotAt(e.getEntity().getLocation())) {
+ e.setCancelled(true);