Buggy code:
protected static boolean inWorld ( Entity entity ) { } protected static boolean inWorld ( Location loc ) { } @ EventHandler ( priority = EventPriority . LOW ) public void onVehicleDamageEvent ( VehicleDamageEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = false ) public void onVistorDeath ( final PlayerDeathEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onVistorSpawn ( final PlayerRespawnEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onVisitorPickup ( final PlayerPickupItemEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onVisitorDrop ( final PlayerDropItemEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onVehicleMove ( final VehicleMoveEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onPlayerMove ( final PlayerMoveEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onPlayerFall ( final PlayerMoveEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onPlayerTeleport ( final PlayerCommandPreprocessEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onPlayerTeleport ( final PlayerTeleportEvent e ) { } @ EventHandler ( priority = EventPriority . LOWEST , ignoreCancelled = true ) public void onAnimalSpawn ( final CreatureSpawnEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onMobSpawn ( final CreatureSpawnEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onExplosion ( final EntityExplodeEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onEndermanGrief ( final EntityChangeBlockEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onEndermanDeath ( final EntityDeathEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onBlockBreak ( final BlockBreakEvent e ) { } @ EventHandler ( priority = EventPriority . LOW , ignoreCancelled = true ) public void onEntityDamage ( final EntityDamageByEntityEvent e ) { if ( debug ) { plugin . getLogger ( ) . info ( e . getEventName ( ) ) ; plugin . getLogger ( ) . info ( e . getDamager ( ) . toString ( ) ) ; } if ( ! ( IslandGuard . inWorld ( e . getEntity ( ) ) ) ) { return ; } if ( ( ! ( Settings . allowTNTDamage ) ) && ( e . getDamager ( ) . getType ( ) . equals ( PRIMED_TNT ) ) ) { e . setCancelled ( true ) ; return ; } if ( ( ( ! ( Settings . allowCreeperDamage ) ) && ( e . getDamager ( ) . getType ( ) . equals ( CREEPER ) ) ) && ( ! ( ( e . getEntity ( ) ) instanceof Player ) ) ) { e . setCancelled ( true ) ; return ; } if ( ( e . getDamager ( ) ) instanceof Player ) { Player p = ( ( Player ) ( e . getDamager ( ) ) ) ; if ( ( p . isOp ( ) ) || ( VaultHelper . checkPerm ( p , ( ( Settings . PERMPREFIX ) + "mod.bypassprotect" ) ) ) ) { return ; } } if ( ( e . getEntity ( ) ) instanceof ItemFrame ) { if ( ( ! ( Settings . allowSpawnBreakBlocks ) ) && ( plugin . getGrid ( ) . isAtSpawn ( e . getEntity ( ) . getLocation ( ) ) ) ) { ( ( Player ) ( e . getDamager ( ) ) ) . sendMessage ( ( ( ChatColor . RED ) + ( Locale . islandProtected ) ) ) ; e . setCancelled ( true ) ; return ; } <START_BUG> if ( Settings . allowBreakBlocks ) { <END_BUG> return ; } if ( ( e . getDamager ( ) ) instanceof Player ) { if ( ! ( plugin . getGrid ( ) . locationIsOnIsland ( ( ( Player ) ( e . getDamager ( ) ) ) , e . getEntity ( ) . getLocation ( ) ) ) ) { ( ( Player ) ( e . getDamager ( ) ) ) . sendMessage ( ( ( ChatColor . RED ) + ( Locale . islandProtected ) ) ) ; e . setCancelled ( true ) ; return ; } } else if ( ( e . getDamager ( ) ) instanceof Projectile ) { Projectile p = ( ( Projectile ) ( e . getDamager ( ) ) ) ; if ( ( p . getShooter ( ) ) instanceof Player ) { if ( ! ( plugin . getGrid ( ) . locationIsOnIsland ( ( ( Player ) ( p . getShooter ( ) ) ) , e . getEntity ( ) . getLocation ( ) ) ) ) { ( ( Player ) ( p . getShooter ( ) ) ) . sendMessage ( ( ( ChatColor . RED ) + ( Locale . islandProtected ) ) ) ; e . setCancelled ( true ) ; return ; } } } else if ( ( ( e . getDamager ( ) ) instanceof TNTPrimed ) && ( ! ( Settings . allowTNTDamage ) ) ) { e . setCancelled ( true ) ; return ; } }

Fix:
if ( ( Settings . allowBreakBlocks ) || ( ( Settings . allowSpawnBreakBlocks ) && ( plugin . getGrid ( ) . isAtSpawn ( e . getEntity ( ) . getLocation ( ) ) ) ) ) {