	public void onPlayerInteract(PlayerInteractEvent event)
	{
		Action action = event.getAction();
		if(action == Action.RIGHT_CLICK_AIR||action == Action.RIGHT_CLICK_BLOCK)
		{
			int pickid = 278;
			if(event.getItem()!=null)
			if(event.getItem().getTypeId()==pickid)
			{
				if (plugin.lightningpick.containsKey(event.getPlayer()))
				{
					Block targetBlock = event.getPlayer().getTargetBlock(null, 35);
					if (targetBlock!=null)
					{
						Location strikeloc = targetBlock.getLocation();
						event.getPlayer().getWorld().strikeLightning(strikeloc);
					}
					else
					{
						event.getPlayer().sendMessage("No block in sight");
					}
				}
			}
		}
	}

	public void onPlayerInteract(PlayerInteractEvent event)
	{
		if(!event.isCancelled())
		{
			Action action = event.getAction();
			if(action == Action.RIGHT_CLICK_AIR||action == Action.RIGHT_CLICK_BLOCK)
			{
				int pickid = 278;
				if(event.getItem()!=null)
					if(event.getItem().getTypeId()==pickid)
					{
						if (plugin.lightningpick.containsKey(event.getPlayer()))
						{
							Block targetBlock = event.getPlayer().getTargetBlock(null, 35);
							if (targetBlock!=null)
							{
								Location strikeloc = targetBlock.getLocation();
								event.getPlayer().getWorld().strikeLightning(strikeloc);
							}
							else
							{
								event.getPlayer().sendMessage("No block in sight");
							}
						}
					}
			}
		}
	}
