I have been custom coding a KitPvP plugin and i am stuck with this code i have got the ligthning right but i cannot seem to get it to hit the block the player is looking at instead of hitting them. Code:java @EventHandler public void onPlayerInteract(PlayerInteractEvent event){ Player player = event.getPlayer(); if(event.getAction().equals(Action.RIGHT_CLICK_AIR) && player.getItemInHand().getType() == Material.STONE_AXE){ Player[] pl = event.getPlayer().getServer().getOnlinePlayers(); Vector p_vec = event.getPlayer().getLocation().toVector(); for(int i = 0; i<pl.length;i++){ if(p_vec.distance(pl[i].getLocation().toVector())<15D){ event.getPlayer().getWorld().strikeLightning(pl[i].getLocation());[/i][/i]