I want to use it for custom votes but I don't get how. What I need is to get some feedback to myplugin in some way. Is it even possible?
This is how it looks in DedicatedAPI/Connection
Code: Select all
/**
* Call a vote for a cmd. The command is a XML string corresponding to an XmlRpc request.
* You can additionally specifiy specific parameters for this vote: a ratio, a time out
* and who is voting. Special timeout values: a timeout of '0' means default, '1' means
* indefinite; a ratio of '-1' means default; Voters values: '0' means only active players,
* '1' means any player, '2' is for everybody, pure spectators included.
* @param Structures\Vote $vote
* @param double $ratio -1 means default, else ration should be between 0 and 1
* @param int $timeout time to vote in millisecondes, '0' means default
* @param int $voters Voters values: '0' means only active players, '1' means any player, '2' is for everybody, pure spectators included
* @param bool $multicall
* @throws InvalidArgumentException
*/
function callVote(Structures\Vote $vote, $ratio = 0.5, $timeout = 0, $voters = 1, $multicall = false)

The plugin I want to use it in is loaded as "BAZINGA/Changemap" and I would need to get some feedback to it from the vote as the effect of the vote can't be done in a single command or even a few.
Any help is appreciated.