diff --git a/application/plugins/CustomVotes.php b/application/plugins/CustomVotes.php index 16c24ac6..50e8a66e 100644 --- a/application/plugins/CustomVotes.php +++ b/application/plugins/CustomVotes.php @@ -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)) {