Also tried onAfterCommentVoted instead of onCommentVote and added new params to xml file but it increase user's karma +1 everytime even if poor vote. How can i get vote value (good or poor)? Maybe i can fix it until you release it.
The JComments 2.2 has no such event - it will be available with next version. But you could add it manually. Open /components/com_jcomments/jcomments.ajax.php find code:
$query = "INSERT INTO `#__jcomments_votes`(`commentid`,`userid`,`ip`,`date`,`value`)"
. "VALUES('".$comment->id."', '".$acl->getUserId()."','".$db->getEscaped($ip)."', now(), ".$value.")";
$db->setQuery($query);
$db->query();
and add after:
if ($config->getInt('enable_mambots') == 1) {
JCommentsPluginHelper::trigger('onAfterCommentVoted', array(&$comment, &$response, $value));
}