does p.getLineOfSight runs trough all the blocks between the maximum selected? And if so how do i use it?
Norbu10 Take a look at this, more can be found on the bukkit api, see the examples on this thread for a reference https://forums.bukkit.org/threads/get-player-in-line-of-sight.146323/ List<Block> org.bukkit.entity.LivingEntity.getLineOfSight ( HashSet< Byte > transparent, int maxDistance ) Gets all blocks along the living entity's line of sight. This list contains all blocks from the living entity's eye position to target inclusive. Parameters transparent HashSet containing all transparent block IDs (set to null for only air) maxDistance this is the maximum distance to scan (may be limited by server by at least 100 blocks, no less) Returns list containing all blocks along the living entity's line of sight Deprecated: Magic value