public function setVote($login, $vote)
    {
        $player = $this->playerStorage->getPlayerInfo($login);

        $obj = [
            "login" => $login,
            "nickname" => $player->getNickName(),
            "vote" => $vote,
        ];

        $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj);
        $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login);
    }
public function setVote($login, $vote)
    {
        $player = $this->playerStorage->getPlayerInfo($login);

        $obj = [
            "login" => $login,
            "nickname" => $player->getNickName(),
            "vote" => $vote,
        ];

        $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj);
        $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login);
    }
public function setVote ( $ login , $ vote ) { $ player = $ this -> playerStorage -> getPlayerInfo ( $ login ) ; $ obj = [ "login" => $ login , "nickname" => $ player -> getNickName ( ) , "vote" => $ vote , ] ; $ this -> changedVotes [ $ player -> getLogin ( ) ] = new MxVote ( ( object ) $ obj ) ; $ this -> chatNotification -> sendMessage ( 'expansion_mxkarma.chat.votechanged' , $ login ) ; }
sets vote value
@param $login
@param $vote
sets vote value