spigot get block looking at code example
Example: get block player is looking at bukkit
Player player = (Player) sender;
Block block = player.getTargetBlock(null, 100);
Location bl = block.getLocation();
Player player = (Player) sender;
Block block = player.getTargetBlock(null, 100);
Location bl = block.getLocation();