This commit is contained in:
kremsy 2014-02-19 21:51:48 +01:00 committed by Steffen Schröder
parent 344e6747fd
commit 895d500ca6

View File

@ -298,12 +298,10 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
/**
* Handle Standard Votes
*
* @param array $callback
* @param $voteName
* @param $voteResult
*/
public function handleVoteFinished(array $callback) {
$voteName = $callback[1];
$voteResult = $callback[2];
public function handleVoteFinished($voteName, $voteResult) {
if ($voteResult >= $this->currentVote->neededRatio) {
// Call Closure if one exists
if (is_callable($this->currentVote->function)) {