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 * Handle Standard Votes
* *
* @param array $callback * @param $voteName
* @param $voteResult
*/ */
public function handleVoteFinished(array $callback) { public function handleVoteFinished($voteName, $voteResult) {
$voteName = $callback[1];
$voteResult = $callback[2];
if ($voteResult >= $this->currentVote->neededRatio) { if ($voteResult >= $this->currentVote->neededRatio) {
// Call Closure if one exists // Call Closure if one exists
if (is_callable($this->currentVote->function)) { if (is_callable($this->currentVote->function)) {