spigot api get block that player is looking 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();