fix
This commit is contained in:
parent
344e6747fd
commit
895d500ca6
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user